From 233a1e5fbb1e1d01f9dd9a006dac9122187f7743 Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Thu, 18 Jun 2020 01:22:56 +0200 Subject: [PATCH] Rename forms. --- VAR.DatabaseExplorer/Program.cs | 2 +- ...mDatos.Designer.cs => FrmData.Designer.cs} | 2 +- .../UI/{FrmDatos.cs => FrmData.cs} | 4 +- .../UI/{FrmDatos.resx => FrmData.resx} | 0 ...os.Designer.cs => FrmDatabase.Designer.cs} | 2 +- .../UI/{FrmBaseDatos.cs => FrmDatabase.cs} | 15 +++--- .../{FrmBaseDatos.resx => FrmDatabase.resx} | 0 ...ncipal.Designer.cs => FrmMain.Designer.cs} | 32 +++++++---- .../UI/{FrmPrincipal.cs => FrmMain.cs} | 18 ++++--- .../UI/{FrmPrincipal.resx => FrmMain.resx} | 8 +-- ...os.Designer.cs => FrmRoutines.Designer.cs} | 2 +- .../{FrmProcedimientos.cs => FrmRoutines.cs} | 4 +- ...rmProcedimientos.resx => FrmRoutines.resx} | 0 ...gner.cs => FrmSQLServerSearch.Designer.cs} | 53 +++++++++++-------- ...FrmServidores.cs => FrmSQLServerSearch.cs} | 8 +-- ...ervidores.resx => FrmSQLServerSearch.resx} | 4 +- .../VAR.DatabaseExplorer.csproj | 50 ++++++++--------- 17 files changed, 114 insertions(+), 90 deletions(-) rename VAR.DatabaseExplorer/UI/{FrmDatos.Designer.cs => FrmData.Designer.cs} (99%) rename VAR.DatabaseExplorer/UI/{FrmDatos.cs => FrmData.cs} (94%) rename VAR.DatabaseExplorer/UI/{FrmDatos.resx => FrmData.resx} (100%) rename VAR.DatabaseExplorer/UI/{FrmBaseDatos.Designer.cs => FrmDatabase.Designer.cs} (99%) rename VAR.DatabaseExplorer/UI/{FrmBaseDatos.cs => FrmDatabase.cs} (93%) rename VAR.DatabaseExplorer/UI/{FrmBaseDatos.resx => FrmDatabase.resx} (100%) rename VAR.DatabaseExplorer/UI/{FrmPrincipal.Designer.cs => FrmMain.Designer.cs} (75%) rename VAR.DatabaseExplorer/UI/{FrmPrincipal.cs => FrmMain.cs} (85%) rename VAR.DatabaseExplorer/UI/{FrmPrincipal.resx => FrmMain.resx} (95%) rename VAR.DatabaseExplorer/UI/{FrmProcedimientos.Designer.cs => FrmRoutines.Designer.cs} (99%) rename VAR.DatabaseExplorer/UI/{FrmProcedimientos.cs => FrmRoutines.cs} (95%) rename VAR.DatabaseExplorer/UI/{FrmProcedimientos.resx => FrmRoutines.resx} (100%) rename VAR.DatabaseExplorer/UI/{FrmServidores.Designer.cs => FrmSQLServerSearch.Designer.cs} (89%) rename VAR.DatabaseExplorer/UI/{FrmServidores.cs => FrmSQLServerSearch.cs} (94%) rename VAR.DatabaseExplorer/UI/{FrmServidores.resx => FrmSQLServerSearch.resx} (97%) diff --git a/VAR.DatabaseExplorer/Program.cs b/VAR.DatabaseExplorer/Program.cs index feb60c2..0a12c68 100644 --- a/VAR.DatabaseExplorer/Program.cs +++ b/VAR.DatabaseExplorer/Program.cs @@ -14,7 +14,7 @@ namespace VAR.DatabaseExplorer { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new FrmPrincipal()); + Application.Run(new FrmMain()); } } } \ No newline at end of file diff --git a/VAR.DatabaseExplorer/UI/FrmDatos.Designer.cs b/VAR.DatabaseExplorer/UI/FrmData.Designer.cs similarity index 99% rename from VAR.DatabaseExplorer/UI/FrmDatos.Designer.cs rename to VAR.DatabaseExplorer/UI/FrmData.Designer.cs index 2b16a3f..05259c3 100644 --- a/VAR.DatabaseExplorer/UI/FrmDatos.Designer.cs +++ b/VAR.DatabaseExplorer/UI/FrmData.Designer.cs @@ -1,6 +1,6 @@ namespace VAR.DatabaseExplorer.UI { - partial class FrmDatos + partial class FrmData { /// /// Required designer variable. diff --git a/VAR.DatabaseExplorer/UI/FrmDatos.cs b/VAR.DatabaseExplorer/UI/FrmData.cs similarity index 94% rename from VAR.DatabaseExplorer/UI/FrmDatos.cs rename to VAR.DatabaseExplorer/UI/FrmData.cs index 0fc10be..1644b38 100644 --- a/VAR.DatabaseExplorer/UI/FrmDatos.cs +++ b/VAR.DatabaseExplorer/UI/FrmData.cs @@ -6,7 +6,7 @@ using System.Windows.Forms; namespace VAR.DatabaseExplorer.UI { - public partial class FrmDatos : Form + public partial class FrmData : Form { #region Declarations @@ -18,7 +18,7 @@ namespace VAR.DatabaseExplorer.UI #region Form life cycle - public FrmDatos(string conexionString, string tableSchema, string tableName) + public FrmData(string conexionString, string tableSchema, string tableName) { InitializeComponent(); _conexionString = conexionString; diff --git a/VAR.DatabaseExplorer/UI/FrmDatos.resx b/VAR.DatabaseExplorer/UI/FrmData.resx similarity index 100% rename from VAR.DatabaseExplorer/UI/FrmDatos.resx rename to VAR.DatabaseExplorer/UI/FrmData.resx diff --git a/VAR.DatabaseExplorer/UI/FrmBaseDatos.Designer.cs b/VAR.DatabaseExplorer/UI/FrmDatabase.Designer.cs similarity index 99% rename from VAR.DatabaseExplorer/UI/FrmBaseDatos.Designer.cs rename to VAR.DatabaseExplorer/UI/FrmDatabase.Designer.cs index 1529a9f..b7a8488 100644 --- a/VAR.DatabaseExplorer/UI/FrmBaseDatos.Designer.cs +++ b/VAR.DatabaseExplorer/UI/FrmDatabase.Designer.cs @@ -1,6 +1,6 @@ namespace VAR.DatabaseExplorer.UI { - partial class FrmBaseDatos + partial class FrmDatabase { /// /// Required designer variable. diff --git a/VAR.DatabaseExplorer/UI/FrmBaseDatos.cs b/VAR.DatabaseExplorer/UI/FrmDatabase.cs similarity index 93% rename from VAR.DatabaseExplorer/UI/FrmBaseDatos.cs rename to VAR.DatabaseExplorer/UI/FrmDatabase.cs index 1d86fab..3ab86c5 100644 --- a/VAR.DatabaseExplorer/UI/FrmBaseDatos.cs +++ b/VAR.DatabaseExplorer/UI/FrmDatabase.cs @@ -9,7 +9,7 @@ using VAR.DatabaseExplorer.Code.DataTransfer; namespace VAR.DatabaseExplorer.UI { - public partial class FrmBaseDatos : Form + public partial class FrmDatabase : Form { private string _connectionString; @@ -30,7 +30,7 @@ namespace VAR.DatabaseExplorer.UI lsvColumnas.Items.Clear(); } - public FrmBaseDatos(string connectionString) + public FrmDatabase(string connectionString) { InitializeComponent(); _connectionString = connectionString; @@ -41,6 +41,7 @@ namespace VAR.DatabaseExplorer.UI { Initialize(); Database database = DatabaseBL.Database_Get(_connectionString); + Text = database.Name; lblTituloDB.Text = database.Name; lblTituloTabla.Text = ""; } @@ -76,20 +77,20 @@ namespace VAR.DatabaseExplorer.UI { if (string.IsNullOrEmpty(_tableSchema) || string.IsNullOrEmpty(_tableName)) { return; } - var form = new FrmDatos(_connectionString, _tableSchema, _tableName); - FrmPrincipal.AddForm(form); + var form = new FrmData(_connectionString, _tableSchema, _tableName); + FrmMain.AddForm(form); } private void btnProcs_Click(object sender, EventArgs e) { - var form = new FrmProcedimientos(_connectionString); - FrmPrincipal.AddForm(form); + var form = new FrmRoutines(_connectionString); + FrmMain.AddForm(form); } private void btnExec_Click(object sender, EventArgs e) { var form = new FrmExec(_connectionString); - FrmPrincipal.AddForm(form); + FrmMain.AddForm(form); } private void btnDocGen_Click(object sender, EventArgs e) diff --git a/VAR.DatabaseExplorer/UI/FrmBaseDatos.resx b/VAR.DatabaseExplorer/UI/FrmDatabase.resx similarity index 100% rename from VAR.DatabaseExplorer/UI/FrmBaseDatos.resx rename to VAR.DatabaseExplorer/UI/FrmDatabase.resx diff --git a/VAR.DatabaseExplorer/UI/FrmPrincipal.Designer.cs b/VAR.DatabaseExplorer/UI/FrmMain.Designer.cs similarity index 75% rename from VAR.DatabaseExplorer/UI/FrmPrincipal.Designer.cs rename to VAR.DatabaseExplorer/UI/FrmMain.Designer.cs index 705c19d..84afa48 100644 --- a/VAR.DatabaseExplorer/UI/FrmPrincipal.Designer.cs +++ b/VAR.DatabaseExplorer/UI/FrmMain.Designer.cs @@ -1,6 +1,6 @@ namespace VAR.DatabaseExplorer.UI { - partial class FrmPrincipal + partial class FrmMain { /// /// Required designer variable. @@ -30,8 +30,9 @@ { this.menuPrincipal = new System.Windows.Forms.MenuStrip(); this.menuServidor = new System.Windows.Forms.ToolStripMenuItem(); - this.menuBuscarServidor = new System.Windows.Forms.ToolStripMenuItem(); + this.menuSQLServerSearch = new System.Windows.Forms.ToolStripMenuItem(); this.flowpnlWindows = new System.Windows.Forms.FlowLayoutPanel(); + this.menuConectionString = new System.Windows.Forms.ToolStripMenuItem(); this.menuPrincipal.SuspendLayout(); this.SuspendLayout(); // @@ -48,17 +49,18 @@ // menuServidor // this.menuServidor.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.menuBuscarServidor}); + this.menuSQLServerSearch, + this.menuConectionString}); this.menuServidor.Name = "menuServidor"; this.menuServidor.Size = new System.Drawing.Size(62, 20); this.menuServidor.Text = "Servidor"; // - // menuBuscarServidor + // menuSQLServerSearch // - this.menuBuscarServidor.Name = "menuBuscarServidor"; - this.menuBuscarServidor.Size = new System.Drawing.Size(155, 22); - this.menuBuscarServidor.Text = "Buscar Servidor"; - this.menuBuscarServidor.Click += new System.EventHandler(this.menuBuscarServidor_Click); + this.menuSQLServerSearch.Name = "menuSQLServerSearch"; + this.menuSQLServerSearch.Size = new System.Drawing.Size(180, 22); + this.menuSQLServerSearch.Text = "SQL Server Search"; + this.menuSQLServerSearch.Click += new System.EventHandler(this.menuSQLServerSearch_Click); // // flowpnlWindows // @@ -70,7 +72,14 @@ this.flowpnlWindows.Size = new System.Drawing.Size(800, 0); this.flowpnlWindows.TabIndex = 6; // - // FrmPrincipal + // menuConectionString + // + this.menuConectionString.Name = "menuConectionString"; + this.menuConectionString.Size = new System.Drawing.Size(180, 22); + this.menuConectionString.Text = "Conection String"; + this.menuConectionString.Click += new System.EventHandler(this.menuConectionString_Click); + // + // FrmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -79,7 +88,7 @@ this.Controls.Add(this.menuPrincipal); this.IsMdiContainer = true; this.MainMenuStrip = this.menuPrincipal; - this.Name = "FrmPrincipal"; + this.Name = "FrmMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Explorador de Servidores"; this.MdiChildActivate += new System.EventHandler(this.FrmPrincipal_MdiChildActivate); @@ -94,7 +103,8 @@ private System.Windows.Forms.MenuStrip menuPrincipal; private System.Windows.Forms.ToolStripMenuItem menuServidor; - private System.Windows.Forms.ToolStripMenuItem menuBuscarServidor; + private System.Windows.Forms.ToolStripMenuItem menuSQLServerSearch; private System.Windows.Forms.FlowLayoutPanel flowpnlWindows; + private System.Windows.Forms.ToolStripMenuItem menuConectionString; } } \ No newline at end of file diff --git a/VAR.DatabaseExplorer/UI/FrmPrincipal.cs b/VAR.DatabaseExplorer/UI/FrmMain.cs similarity index 85% rename from VAR.DatabaseExplorer/UI/FrmPrincipal.cs rename to VAR.DatabaseExplorer/UI/FrmMain.cs index 39980d8..e691e00 100644 --- a/VAR.DatabaseExplorer/UI/FrmPrincipal.cs +++ b/VAR.DatabaseExplorer/UI/FrmMain.cs @@ -5,17 +5,17 @@ using VAR.DatabaseExplorer.Controls; namespace VAR.DatabaseExplorer.UI { - public partial class FrmPrincipal : Form + public partial class FrmMain : Form { #region Declarations - private static FrmPrincipal _currentInstance; + private static FrmMain _currentInstance; #endregion Declarations #region Creator - public FrmPrincipal() + public FrmMain() { _currentInstance = this; InitializeComponent(); @@ -81,12 +81,18 @@ namespace VAR.DatabaseExplorer.UI #region Menus - private void menuBuscarServidor_Click(object sender, EventArgs e) + private void menuSQLServerSearch_Click(object sender, EventArgs e) { - var frm = new FrmServidores(); - FrmPrincipal.AddForm(frm); + var frm = new FrmSQLServerSearch(); + FrmMain.AddForm(frm); + } + + private void menuConectionString_Click(object sender, EventArgs e) + { + } #endregion Menus + } } \ No newline at end of file diff --git a/VAR.DatabaseExplorer/UI/FrmPrincipal.resx b/VAR.DatabaseExplorer/UI/FrmMain.resx similarity index 95% rename from VAR.DatabaseExplorer/UI/FrmPrincipal.resx rename to VAR.DatabaseExplorer/UI/FrmMain.resx index 59e8977..3bdf2c2 100644 --- a/VAR.DatabaseExplorer/UI/FrmPrincipal.resx +++ b/VAR.DatabaseExplorer/UI/FrmMain.resx @@ -112,15 +112,15 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + 14, 6 - + 32 \ No newline at end of file diff --git a/VAR.DatabaseExplorer/UI/FrmProcedimientos.Designer.cs b/VAR.DatabaseExplorer/UI/FrmRoutines.Designer.cs similarity index 99% rename from VAR.DatabaseExplorer/UI/FrmProcedimientos.Designer.cs rename to VAR.DatabaseExplorer/UI/FrmRoutines.Designer.cs index d2524bf..a24723e 100644 --- a/VAR.DatabaseExplorer/UI/FrmProcedimientos.Designer.cs +++ b/VAR.DatabaseExplorer/UI/FrmRoutines.Designer.cs @@ -1,6 +1,6 @@ namespace VAR.DatabaseExplorer.UI { - partial class FrmProcedimientos + partial class FrmRoutines { /// /// Required designer variable. diff --git a/VAR.DatabaseExplorer/UI/FrmProcedimientos.cs b/VAR.DatabaseExplorer/UI/FrmRoutines.cs similarity index 95% rename from VAR.DatabaseExplorer/UI/FrmProcedimientos.cs rename to VAR.DatabaseExplorer/UI/FrmRoutines.cs index df20a71..fd731aa 100644 --- a/VAR.DatabaseExplorer/UI/FrmProcedimientos.cs +++ b/VAR.DatabaseExplorer/UI/FrmRoutines.cs @@ -7,7 +7,7 @@ using VAR.DatabaseExplorer.Code.DataTransfer; namespace VAR.DatabaseExplorer.UI { - public partial class FrmProcedimientos : Form + public partial class FrmRoutines : Form { #region Declarations @@ -19,7 +19,7 @@ namespace VAR.DatabaseExplorer.UI #region Form life cycle - public FrmProcedimientos(string cnxString) + public FrmRoutines(string cnxString) { InitializeComponent(); diff --git a/VAR.DatabaseExplorer/UI/FrmProcedimientos.resx b/VAR.DatabaseExplorer/UI/FrmRoutines.resx similarity index 100% rename from VAR.DatabaseExplorer/UI/FrmProcedimientos.resx rename to VAR.DatabaseExplorer/UI/FrmRoutines.resx diff --git a/VAR.DatabaseExplorer/UI/FrmServidores.Designer.cs b/VAR.DatabaseExplorer/UI/FrmSQLServerSearch.Designer.cs similarity index 89% rename from VAR.DatabaseExplorer/UI/FrmServidores.Designer.cs rename to VAR.DatabaseExplorer/UI/FrmSQLServerSearch.Designer.cs index cbddafc..51110c6 100644 --- a/VAR.DatabaseExplorer/UI/FrmServidores.Designer.cs +++ b/VAR.DatabaseExplorer/UI/FrmSQLServerSearch.Designer.cs @@ -1,6 +1,6 @@ namespace VAR.DatabaseExplorer.UI { - partial class FrmServidores + partial class FrmSQLServerSearch { /// /// Required designer variable. @@ -44,6 +44,7 @@ this.colDBName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.colFechaCreacion = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); @@ -52,14 +53,15 @@ // lsvServidores // this.lsvServidores.AllowSorting = true; - this.lsvServidores.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.lsvServidores.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lsvServidores.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colNombreServidor, this.colInstancia, this.colVersion}); this.lsvServidores.FullRowSelect = true; + this.lsvServidores.HideSelection = false; this.lsvServidores.Location = new System.Drawing.Point(3, 32); this.lsvServidores.Name = "lsvServidores"; this.lsvServidores.Size = new System.Drawing.Size(306, 386); @@ -85,8 +87,8 @@ // // btnListarServidores // - this.btnListarServidores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.btnListarServidores.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.btnListarServidores.Location = new System.Drawing.Point(3, 3); this.btnListarServidores.Name = "btnListarServidores"; this.btnListarServidores.Size = new System.Drawing.Size(306, 23); @@ -106,12 +108,13 @@ // // txtServidor // - this.txtServidor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.txtServidor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.txtServidor.Location = new System.Drawing.Point(70, 6); this.txtServidor.Name = "txtServidor"; this.txtServidor.Size = new System.Drawing.Size(218, 20); this.txtServidor.TabIndex = 4; + this.txtServidor.TabWidth = 8; // // lblUsuario // @@ -133,27 +136,29 @@ // // txtUsuario // - this.txtUsuario.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.txtUsuario.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.txtUsuario.Location = new System.Drawing.Point(70, 32); this.txtUsuario.Name = "txtUsuario"; this.txtUsuario.Size = new System.Drawing.Size(218, 20); this.txtUsuario.TabIndex = 7; + this.txtUsuario.TabWidth = 8; // // TxtContrasenha // - this.TxtContrasenha.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.TxtContrasenha.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.TxtContrasenha.Location = new System.Drawing.Point(70, 58); this.TxtContrasenha.Name = "TxtContrasenha"; this.TxtContrasenha.Size = new System.Drawing.Size(218, 20); this.TxtContrasenha.TabIndex = 8; + this.TxtContrasenha.TabWidth = 8; this.TxtContrasenha.UseSystemPasswordChar = true; // // btnListarBBDD // - this.btnListarBBDD.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.btnListarBBDD.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.btnListarBBDD.Location = new System.Drawing.Point(6, 84); this.btnListarBBDD.Name = "btnListarBBDD"; this.btnListarBBDD.Size = new System.Drawing.Size(282, 23); @@ -165,13 +170,14 @@ // lsvBBDD // this.lsvBBDD.AllowSorting = true; - this.lsvBBDD.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.lsvBBDD.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lsvBBDD.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.colDBName, this.colFechaCreacion}); this.lsvBBDD.FullRowSelect = true; + this.lsvBBDD.HideSelection = false; this.lsvBBDD.Location = new System.Drawing.Point(6, 113); this.lsvBBDD.Name = "lsvBBDD"; this.lsvBBDD.Size = new System.Drawing.Size(282, 305); @@ -192,9 +198,9 @@ // // splitContainer1 // - this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.splitContainer1.Location = new System.Drawing.Point(12, 12); this.splitContainer1.Name = "splitContainer1"; // @@ -217,17 +223,18 @@ this.splitContainer1.SplitterDistance = 312; this.splitContainer1.TabIndex = 12; // - // FrmServidores + // FrmSQLServerSearch // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(631, 445); this.Controls.Add(this.splitContainer1); - this.Name = "FrmServidores"; - this.Text = "Servidores"; + this.Name = "FrmSQLServerSearch"; + this.Text = "SQL Server Search"; this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.Panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.ResumeLayout(false); diff --git a/VAR.DatabaseExplorer/UI/FrmServidores.cs b/VAR.DatabaseExplorer/UI/FrmSQLServerSearch.cs similarity index 94% rename from VAR.DatabaseExplorer/UI/FrmServidores.cs rename to VAR.DatabaseExplorer/UI/FrmSQLServerSearch.cs index c995b56..22abbe5 100644 --- a/VAR.DatabaseExplorer/UI/FrmServidores.cs +++ b/VAR.DatabaseExplorer/UI/FrmSQLServerSearch.cs @@ -7,9 +7,9 @@ using VAR.DatabaseExplorer.Code.DataTransfer; namespace VAR.DatabaseExplorer.UI { - public partial class FrmServidores : Form + public partial class FrmSQLServerSearch : Form { - public FrmServidores() + public FrmSQLServerSearch() { InitializeComponent(); } @@ -58,8 +58,8 @@ namespace VAR.DatabaseExplorer.UI string databaseName = lsvBBDD.SelectedItems[0].SubItems[0].Text; // Llamar a la venta de la base de datos string connectionStirng = BuildConnectionString(txtServidor.Text, databaseName, txtUsuario.Text, TxtContrasenha.Text); - var frm = new FrmBaseDatos(connectionStirng); - FrmPrincipal.AddForm(frm); + var frm = new FrmDatabase(connectionStirng); + FrmMain.AddForm(frm); } private string BuildConnectionString(string server, string database, string user, string password) diff --git a/VAR.DatabaseExplorer/UI/FrmServidores.resx b/VAR.DatabaseExplorer/UI/FrmSQLServerSearch.resx similarity index 97% rename from VAR.DatabaseExplorer/UI/FrmServidores.resx rename to VAR.DatabaseExplorer/UI/FrmSQLServerSearch.resx index 19dc0dd..d58980a 100644 --- a/VAR.DatabaseExplorer/UI/FrmServidores.resx +++ b/VAR.DatabaseExplorer/UI/FrmSQLServerSearch.resx @@ -112,9 +112,9 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 \ No newline at end of file diff --git a/VAR.DatabaseExplorer/VAR.DatabaseExplorer.csproj b/VAR.DatabaseExplorer/VAR.DatabaseExplorer.csproj index fce3fae..76a8352 100644 --- a/VAR.DatabaseExplorer/VAR.DatabaseExplorer.csproj +++ b/VAR.DatabaseExplorer/VAR.DatabaseExplorer.csproj @@ -110,17 +110,17 @@ Component - + Form - - FrmBaseDatos.cs + + FrmDatabase.cs - + Form - - FrmDatos.cs + + FrmData.cs Form @@ -128,44 +128,44 @@ FrmExec.cs - + Form - - FrmPrincipal.cs + + FrmMain.cs - + Form - - FrmProcedimientos.cs + + FrmRoutines.cs - + Form - - FrmServidores.cs + + FrmSQLServerSearch.cs - - FrmBaseDatos.cs + + FrmDatabase.cs - - FrmDatos.cs + + FrmData.cs FrmExec.cs - - FrmPrincipal.cs + + FrmMain.cs - - FrmProcedimientos.cs + + FrmRoutines.cs - - FrmServidores.cs + + FrmSQLServerSearch.cs