Forgot to update the behavior of the Integerity form, repair button is now disabled if no errors are found. The menu item for the Integrety form is now on the login and main menu forms. Security is not a huge concern at the moment.

This commit is contained in:
2018-02-10 21:51:48 -06:00
parent 36bbd29917
commit 65dd82cd31
5 changed files with 273 additions and 230 deletions
+38 -31
View File
@@ -49,30 +49,30 @@
// serverNameLable
//
this.serverNameLable.AutoSize = true;
this.serverNameLable.Location = new System.Drawing.Point(27, 64);
this.serverNameLable.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.serverNameLable.Location = new System.Drawing.Point(22, 53);
this.serverNameLable.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.serverNameLable.Name = "serverNameLable";
this.serverNameLable.Size = new System.Drawing.Size(133, 25);
this.serverNameLable.Size = new System.Drawing.Size(105, 20);
this.serverNameLable.TabIndex = 1;
this.serverNameLable.Text = "Server Name:";
//
// authenticationTypeLabel
//
this.authenticationTypeLabel.AutoSize = true;
this.authenticationTypeLabel.Location = new System.Drawing.Point(18, 130);
this.authenticationTypeLabel.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.authenticationTypeLabel.Location = new System.Drawing.Point(15, 108);
this.authenticationTypeLabel.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.authenticationTypeLabel.Name = "authenticationTypeLabel";
this.authenticationTypeLabel.Size = new System.Drawing.Size(142, 25);
this.authenticationTypeLabel.Size = new System.Drawing.Size(116, 20);
this.authenticationTypeLabel.TabIndex = 3;
this.authenticationTypeLabel.Text = "Authentication:";
//
// connectButton
//
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.Location = new System.Drawing.Point(421, 257);
this.connectButton.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
this.connectButton.Name = "connectButton";
this.connectButton.Size = new System.Drawing.Size(157, 42);
this.connectButton.Size = new System.Drawing.Size(128, 35);
this.connectButton.TabIndex = 5;
this.connectButton.Text = "Connect";
this.connectButton.UseVisualStyleBackColor = true;
@@ -86,62 +86,69 @@
this.authenticationTypeComboBox.Items.AddRange(new object[] {
"Windows Authentication",
"SQL Server Authentication"});
this.authenticationTypeComboBox.Location = new System.Drawing.Point(179, 130);
this.authenticationTypeComboBox.Location = new System.Drawing.Point(146, 108);
this.authenticationTypeComboBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.authenticationTypeComboBox.MaxDropDownItems = 5;
this.authenticationTypeComboBox.Name = "authenticationTypeComboBox";
this.authenticationTypeComboBox.Size = new System.Drawing.Size(280, 32);
this.authenticationTypeComboBox.Size = new System.Drawing.Size(230, 28);
this.authenticationTypeComboBox.TabIndex = 2;
//
// loginLabel
//
this.loginLabel.AutoSize = true;
this.loginLabel.Location = new System.Drawing.Point(94, 196);
this.loginLabel.Location = new System.Drawing.Point(77, 163);
this.loginLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.loginLabel.Name = "loginLabel";
this.loginLabel.Size = new System.Drawing.Size(66, 25);
this.loginLabel.Size = new System.Drawing.Size(52, 20);
this.loginLabel.TabIndex = 6;
this.loginLabel.Text = "Login:";
//
// passwordLabel
//
this.passwordLabel.AutoSize = true;
this.passwordLabel.Location = new System.Drawing.Point(56, 262);
this.passwordLabel.Location = new System.Drawing.Point(46, 218);
this.passwordLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.passwordLabel.Name = "passwordLabel";
this.passwordLabel.Size = new System.Drawing.Size(104, 25);
this.passwordLabel.Size = new System.Drawing.Size(82, 20);
this.passwordLabel.TabIndex = 7;
this.passwordLabel.Text = "Password:";
//
// loginTextBox
//
this.loginTextBox.Enabled = false;
this.loginTextBox.Location = new System.Drawing.Point(179, 196);
this.loginTextBox.Location = new System.Drawing.Point(146, 163);
this.loginTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.loginTextBox.Name = "loginTextBox";
this.loginTextBox.Size = new System.Drawing.Size(280, 29);
this.loginTextBox.Size = new System.Drawing.Size(230, 26);
this.loginTextBox.TabIndex = 3;
//
// passwordTextBox
//
this.passwordTextBox.Enabled = false;
this.passwordTextBox.Location = new System.Drawing.Point(179, 259);
this.passwordTextBox.Location = new System.Drawing.Point(146, 216);
this.passwordTextBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.passwordTextBox.Name = "passwordTextBox";
this.passwordTextBox.PasswordChar = '*';
this.passwordTextBox.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.passwordTextBox.Size = new System.Drawing.Size(280, 29);
this.passwordTextBox.Size = new System.Drawing.Size(230, 26);
this.passwordTextBox.TabIndex = 4;
//
// serverNameComboBox
//
this.serverNameComboBox.FormattingEnabled = true;
this.serverNameComboBox.Location = new System.Drawing.Point(179, 64);
this.serverNameComboBox.Location = new System.Drawing.Point(146, 53);
this.serverNameComboBox.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.serverNameComboBox.Name = "serverNameComboBox";
this.serverNameComboBox.Size = new System.Drawing.Size(452, 32);
this.serverNameComboBox.Size = new System.Drawing.Size(371, 28);
this.serverNameComboBox.TabIndex = 1;
//
// informationLabel
//
this.informationLabel.AutoSize = true;
this.informationLabel.Location = new System.Drawing.Point(12, 307);
this.informationLabel.Location = new System.Drawing.Point(10, 256);
this.informationLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.informationLabel.Name = "informationLabel";
this.informationLabel.Size = new System.Drawing.Size(0, 25);
this.informationLabel.Size = new System.Drawing.Size(0, 20);
this.informationLabel.TabIndex = 11;
//
// mainMenu
@@ -151,7 +158,8 @@
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.Padding = new System.Windows.Forms.Padding(5, 2, 0, 2);
this.mainMenu.Size = new System.Drawing.Size(562, 33);
this.mainMenu.TabIndex = 12;
this.mainMenu.Text = "menuStrip1";
//
@@ -161,30 +169,29 @@
this.backupRestoreMainMenu,
this.checkIntegrityToolStripMenuItem});
this.databaseToolsToolStripMenuItem.Name = "databaseToolsToolStripMenuItem";
this.databaseToolsToolStripMenuItem.Size = new System.Drawing.Size(165, 34);
this.databaseToolsToolStripMenuItem.Size = new System.Drawing.Size(144, 29);
this.databaseToolsToolStripMenuItem.Text = "&Database Tools";
//
// backupRestoreMainMenu
//
this.backupRestoreMainMenu.Name = "backupRestoreMainMenu";
this.backupRestoreMainMenu.Size = new System.Drawing.Size(287, 34);
this.backupRestoreMainMenu.Size = new System.Drawing.Size(252, 30);
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.Size = new System.Drawing.Size(252, 30);
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.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(687, 366);
this.ClientSize = new System.Drawing.Size(562, 305);
this.Controls.Add(this.informationLabel);
this.Controls.Add(this.serverNameComboBox);
this.Controls.Add(this.passwordTextBox);
@@ -199,7 +206,7 @@
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.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
this.MaximizeBox = false;
this.Name = "FrmLoginForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;