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
+233
View File
@@ -0,0 +1,233 @@
namespace AdvertsingProfitControl
{
partial class FrmIntegrityCheck
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmIntegrityCheck));
this.mainLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.systemTablesGroupBox = new System.Windows.Forms.GroupBox();
this.systemTablesListBox = new System.Windows.Forms.ListBox();
this.userTablesGroupBox = new System.Windows.Forms.GroupBox();
this.userTablesListBox = new System.Windows.Forms.ListBox();
this.dbCcResultLabel = new System.Windows.Forms.Label();
this.databaseCheckResultPanel = new System.Windows.Forms.Panel();
this.suggestionLabel = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.repairButton = new System.Windows.Forms.Button();
this.damagedTablesGroupBox = new System.Windows.Forms.GroupBox();
this.damagedTablesListView = new System.Windows.Forms.ListView();
this.informationLabel = new System.Windows.Forms.Label();
this.mainLayoutPanel.SuspendLayout();
this.systemTablesGroupBox.SuspendLayout();
this.userTablesGroupBox.SuspendLayout();
this.databaseCheckResultPanel.SuspendLayout();
this.damagedTablesGroupBox.SuspendLayout();
this.SuspendLayout();
//
// mainLayoutPanel
//
this.mainLayoutPanel.ColumnCount = 2;
this.mainLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.mainLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.mainLayoutPanel.Controls.Add(this.systemTablesGroupBox, 0, 1);
this.mainLayoutPanel.Controls.Add(this.userTablesGroupBox, 0, 2);
this.mainLayoutPanel.Controls.Add(this.dbCcResultLabel, 1, 2);
this.mainLayoutPanel.Controls.Add(this.databaseCheckResultPanel, 1, 3);
this.mainLayoutPanel.Controls.Add(this.damagedTablesGroupBox, 0, 3);
this.mainLayoutPanel.Controls.Add(this.informationLabel, 1, 1);
this.mainLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.mainLayoutPanel.Location = new System.Drawing.Point(0, 0);
this.mainLayoutPanel.Name = "mainLayoutPanel";
this.mainLayoutPanel.RowCount = 4;
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.mainLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.mainLayoutPanel.Size = new System.Drawing.Size(1087, 754);
this.mainLayoutPanel.TabIndex = 0;
//
// systemTablesGroupBox
//
this.systemTablesGroupBox.Controls.Add(this.systemTablesListBox);
this.systemTablesGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.systemTablesGroupBox.Location = new System.Drawing.Point(3, 33);
this.systemTablesGroupBox.Name = "systemTablesGroupBox";
this.systemTablesGroupBox.Size = new System.Drawing.Size(537, 235);
this.systemTablesGroupBox.TabIndex = 0;
this.systemTablesGroupBox.TabStop = false;
this.systemTablesGroupBox.Text = "System Tables";
//
// systemTablesListBox
//
this.systemTablesListBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.systemTablesListBox.FormattingEnabled = true;
this.systemTablesListBox.ItemHeight = 24;
this.systemTablesListBox.Location = new System.Drawing.Point(3, 25);
this.systemTablesListBox.Name = "systemTablesListBox";
this.systemTablesListBox.Size = new System.Drawing.Size(531, 207);
this.systemTablesListBox.TabIndex = 0;
//
// userTablesGroupBox
//
this.userTablesGroupBox.Controls.Add(this.userTablesListBox);
this.userTablesGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.userTablesGroupBox.Location = new System.Drawing.Point(3, 274);
this.userTablesGroupBox.Name = "userTablesGroupBox";
this.userTablesGroupBox.Size = new System.Drawing.Size(537, 235);
this.userTablesGroupBox.TabIndex = 1;
this.userTablesGroupBox.TabStop = false;
this.userTablesGroupBox.Text = "User Tables";
//
// userTablesListBox
//
this.userTablesListBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.userTablesListBox.FormattingEnabled = true;
this.userTablesListBox.ItemHeight = 24;
this.userTablesListBox.Location = new System.Drawing.Point(3, 25);
this.userTablesListBox.Name = "userTablesListBox";
this.userTablesListBox.Size = new System.Drawing.Size(531, 207);
this.userTablesListBox.TabIndex = 1;
//
// dbCcResultLabel
//
this.dbCcResultLabel.AutoSize = true;
this.dbCcResultLabel.Location = new System.Drawing.Point(546, 271);
this.dbCcResultLabel.Name = "dbCcResultLabel";
this.dbCcResultLabel.Size = new System.Drawing.Size(0, 25);
this.dbCcResultLabel.TabIndex = 0;
//
// databaseCheckResultPanel
//
this.databaseCheckResultPanel.Controls.Add(this.suggestionLabel);
this.databaseCheckResultPanel.Controls.Add(this.button2);
this.databaseCheckResultPanel.Controls.Add(this.repairButton);
this.databaseCheckResultPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.databaseCheckResultPanel.Location = new System.Drawing.Point(546, 515);
this.databaseCheckResultPanel.Name = "databaseCheckResultPanel";
this.databaseCheckResultPanel.Size = new System.Drawing.Size(538, 236);
this.databaseCheckResultPanel.TabIndex = 2;
//
// suggestionLabel
//
this.suggestionLabel.AutoSize = true;
this.suggestionLabel.Location = new System.Drawing.Point(10, 9);
this.suggestionLabel.Name = "suggestionLabel";
this.suggestionLabel.Size = new System.Drawing.Size(80, 25);
this.suggestionLabel.TabIndex = 3;
this.suggestionLabel.Text = "what do";
this.suggestionLabel.Visible = false;
//
// button2
//
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.button2.Location = new System.Drawing.Point(352, 175);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(177, 52);
this.button2.TabIndex = 2;
this.button2.Text = "Verify Integrity";
this.button2.UseVisualStyleBackColor = true;
//
// repairButton
//
this.repairButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.repairButton.Location = new System.Drawing.Point(15, 175);
this.repairButton.Name = "repairButton";
this.repairButton.Size = new System.Drawing.Size(177, 52);
this.repairButton.TabIndex = 1;
this.repairButton.Text = "Attempt Repairs";
this.repairButton.UseVisualStyleBackColor = true;
this.repairButton.Click += new System.EventHandler(this.repairButton_Click);
//
// damagedTablesGroupBox
//
this.damagedTablesGroupBox.Controls.Add(this.damagedTablesListView);
this.damagedTablesGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.damagedTablesGroupBox.Location = new System.Drawing.Point(3, 515);
this.damagedTablesGroupBox.Name = "damagedTablesGroupBox";
this.damagedTablesGroupBox.Size = new System.Drawing.Size(537, 236);
this.damagedTablesGroupBox.TabIndex = 3;
this.damagedTablesGroupBox.TabStop = false;
this.damagedTablesGroupBox.Text = "Damaged Tables";
//
// damagedTablesListView
//
this.damagedTablesListView.Dock = System.Windows.Forms.DockStyle.Fill;
this.damagedTablesListView.Location = new System.Drawing.Point(3, 25);
this.damagedTablesListView.Name = "damagedTablesListView";
this.damagedTablesListView.Size = new System.Drawing.Size(531, 208);
this.damagedTablesListView.TabIndex = 0;
this.damagedTablesListView.UseCompatibleStateImageBehavior = false;
this.damagedTablesListView.View = System.Windows.Forms.View.List;
//
// informationLabel
//
this.informationLabel.AutoSize = true;
this.informationLabel.Location = new System.Drawing.Point(546, 30);
this.informationLabel.Name = "informationLabel";
this.informationLabel.Size = new System.Drawing.Size(464, 125);
this.informationLabel.TabIndex = 4;
this.informationLabel.Text = resources.GetString("informationLabel.Text");
//
// FrmIntegrityCheck
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1087, 754);
this.Controls.Add(this.mainLayoutPanel);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FrmIntegrityCheck";
this.Text = "Verify Database Integrity";
this.mainLayoutPanel.ResumeLayout(false);
this.mainLayoutPanel.PerformLayout();
this.systemTablesGroupBox.ResumeLayout(false);
this.userTablesGroupBox.ResumeLayout(false);
this.databaseCheckResultPanel.ResumeLayout(false);
this.databaseCheckResultPanel.PerformLayout();
this.damagedTablesGroupBox.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel mainLayoutPanel;
private System.Windows.Forms.GroupBox systemTablesGroupBox;
private System.Windows.Forms.GroupBox userTablesGroupBox;
private System.Windows.Forms.ListBox systemTablesListBox;
private System.Windows.Forms.ListBox userTablesListBox;
private System.Windows.Forms.Panel databaseCheckResultPanel;
private System.Windows.Forms.Label dbCcResultLabel;
private System.Windows.Forms.GroupBox damagedTablesGroupBox;
private System.Windows.Forms.ListView damagedTablesListView;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button repairButton;
private System.Windows.Forms.Label suggestionLabel;
private System.Windows.Forms.Label informationLabel;
}
}