Created a new form to allow the user to check the database for internal errors. Needs more testing so this build will have the option not visible. Modified the login form to display database tools.

This commit is contained in:
2018-01-13 03:24:59 -06:00
parent 6ec32afc92
commit 2dd754ed29
10 changed files with 6980 additions and 22 deletions
+60 -11
View File
@@ -39,12 +39,17 @@
this.passwordTextBox = new System.Windows.Forms.TextBox();
this.serverNameComboBox = new System.Windows.Forms.ComboBox();
this.informationLabel = new System.Windows.Forms.Label();
this.mainMenu = new System.Windows.Forms.MenuStrip();
this.databaseToolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.backupRestoreMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.checkIntegrityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenu.SuspendLayout();
this.SuspendLayout();
//
// serverNameLable
//
this.serverNameLable.AutoSize = true;
this.serverNameLable.Location = new System.Drawing.Point(15, 23);
this.serverNameLable.Location = new System.Drawing.Point(27, 64);
this.serverNameLable.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.serverNameLable.Name = "serverNameLable";
this.serverNameLable.Size = new System.Drawing.Size(133, 25);
@@ -54,7 +59,7 @@
// authenticationTypeLabel
//
this.authenticationTypeLabel.AutoSize = true;
this.authenticationTypeLabel.Location = new System.Drawing.Point(6, 89);
this.authenticationTypeLabel.Location = new System.Drawing.Point(18, 130);
this.authenticationTypeLabel.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.authenticationTypeLabel.Name = "authenticationTypeLabel";
this.authenticationTypeLabel.Size = new System.Drawing.Size(142, 25);
@@ -63,7 +68,8 @@
//
// connectButton
//
this.connectButton.Location = new System.Drawing.Point(476, 267);
this.connectButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.connectButton.Location = new System.Drawing.Point(515, 309);
this.connectButton.Margin = new System.Windows.Forms.Padding(6);
this.connectButton.Name = "connectButton";
this.connectButton.Size = new System.Drawing.Size(157, 42);
@@ -80,7 +86,7 @@
this.authenticationTypeComboBox.Items.AddRange(new object[] {
"Windows Authentication",
"SQL Server Authentication"});
this.authenticationTypeComboBox.Location = new System.Drawing.Point(167, 89);
this.authenticationTypeComboBox.Location = new System.Drawing.Point(179, 130);
this.authenticationTypeComboBox.MaxDropDownItems = 5;
this.authenticationTypeComboBox.Name = "authenticationTypeComboBox";
this.authenticationTypeComboBox.Size = new System.Drawing.Size(280, 32);
@@ -89,7 +95,7 @@
// loginLabel
//
this.loginLabel.AutoSize = true;
this.loginLabel.Location = new System.Drawing.Point(82, 155);
this.loginLabel.Location = new System.Drawing.Point(94, 196);
this.loginLabel.Name = "loginLabel";
this.loginLabel.Size = new System.Drawing.Size(66, 25);
this.loginLabel.TabIndex = 6;
@@ -98,7 +104,7 @@
// passwordLabel
//
this.passwordLabel.AutoSize = true;
this.passwordLabel.Location = new System.Drawing.Point(44, 221);
this.passwordLabel.Location = new System.Drawing.Point(56, 262);
this.passwordLabel.Name = "passwordLabel";
this.passwordLabel.Size = new System.Drawing.Size(104, 25);
this.passwordLabel.TabIndex = 7;
@@ -107,7 +113,7 @@
// loginTextBox
//
this.loginTextBox.Enabled = false;
this.loginTextBox.Location = new System.Drawing.Point(167, 155);
this.loginTextBox.Location = new System.Drawing.Point(179, 196);
this.loginTextBox.Name = "loginTextBox";
this.loginTextBox.Size = new System.Drawing.Size(280, 29);
this.loginTextBox.TabIndex = 3;
@@ -115,7 +121,7 @@
// passwordTextBox
//
this.passwordTextBox.Enabled = false;
this.passwordTextBox.Location = new System.Drawing.Point(167, 218);
this.passwordTextBox.Location = new System.Drawing.Point(179, 259);
this.passwordTextBox.Name = "passwordTextBox";
this.passwordTextBox.PasswordChar = '*';
this.passwordTextBox.RightToLeft = System.Windows.Forms.RightToLeft.No;
@@ -125,7 +131,7 @@
// serverNameComboBox
//
this.serverNameComboBox.FormattingEnabled = true;
this.serverNameComboBox.Location = new System.Drawing.Point(167, 23);
this.serverNameComboBox.Location = new System.Drawing.Point(179, 64);
this.serverNameComboBox.Name = "serverNameComboBox";
this.serverNameComboBox.Size = new System.Drawing.Size(452, 32);
this.serverNameComboBox.TabIndex = 1;
@@ -133,17 +139,52 @@
// informationLabel
//
this.informationLabel.AutoSize = true;
this.informationLabel.Location = new System.Drawing.Point(11, 267);
this.informationLabel.Location = new System.Drawing.Point(12, 307);
this.informationLabel.Name = "informationLabel";
this.informationLabel.Size = new System.Drawing.Size(0, 25);
this.informationLabel.TabIndex = 11;
//
// mainMenu
//
this.mainMenu.ImageScalingSize = new System.Drawing.Size(28, 28);
this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.databaseToolsToolStripMenuItem});
this.mainMenu.Location = new System.Drawing.Point(0, 0);
this.mainMenu.Name = "mainMenu";
this.mainMenu.Size = new System.Drawing.Size(687, 38);
this.mainMenu.TabIndex = 12;
this.mainMenu.Text = "menuStrip1";
//
// databaseToolsToolStripMenuItem
//
this.databaseToolsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.backupRestoreMainMenu,
this.checkIntegrityToolStripMenuItem});
this.databaseToolsToolStripMenuItem.Name = "databaseToolsToolStripMenuItem";
this.databaseToolsToolStripMenuItem.Size = new System.Drawing.Size(165, 34);
this.databaseToolsToolStripMenuItem.Text = "&Database Tools";
//
// backupRestoreMainMenu
//
this.backupRestoreMainMenu.Name = "backupRestoreMainMenu";
this.backupRestoreMainMenu.Size = new System.Drawing.Size(287, 34);
this.backupRestoreMainMenu.Text = "&Backup and Restore";
this.backupRestoreMainMenu.Click += new System.EventHandler(this.backupRestoreToolStripMenuItem_Click);
//
// checkIntegrityToolStripMenuItem
//
this.checkIntegrityToolStripMenuItem.Name = "checkIntegrityToolStripMenuItem";
this.checkIntegrityToolStripMenuItem.Size = new System.Drawing.Size(287, 34);
this.checkIntegrityToolStripMenuItem.Text = "&Check Integrity";
this.checkIntegrityToolStripMenuItem.Visible = false;
this.checkIntegrityToolStripMenuItem.Click += new System.EventHandler(this.checkIntegrityToolStripMenuItem_Click);
//
// FrmLoginForm
//
this.AcceptButton = this.connectButton;
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(648, 324);
this.ClientSize = new System.Drawing.Size(687, 366);
this.Controls.Add(this.informationLabel);
this.Controls.Add(this.serverNameComboBox);
this.Controls.Add(this.passwordTextBox);
@@ -154,13 +195,17 @@
this.Controls.Add(this.connectButton);
this.Controls.Add(this.authenticationTypeLabel);
this.Controls.Add(this.serverNameLable);
this.Controls.Add(this.mainMenu);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.mainMenu;
this.Margin = new System.Windows.Forms.Padding(6);
this.MaximizeBox = false;
this.Name = "FrmLoginForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Connect to Database";
this.mainMenu.ResumeLayout(false);
this.mainMenu.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
@@ -177,5 +222,9 @@
private System.Windows.Forms.TextBox passwordTextBox;
private System.Windows.Forms.ComboBox serverNameComboBox;
private System.Windows.Forms.Label informationLabel;
private System.Windows.Forms.MenuStrip mainMenu;
private System.Windows.Forms.ToolStripMenuItem databaseToolsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem backupRestoreMainMenu;
private System.Windows.Forms.ToolStripMenuItem checkIntegrityToolStripMenuItem;
}
}