Created the first version of the table normalizing function to correct unbalanced tables. Can only add or update rows by scanning downward from the top of a table; cannot detect fragmentation in the middle of a table. (Think Drag and Drop/row position update fails.)
This commit is contained in:
+20
-10
@@ -33,7 +33,6 @@
|
||||
this.FileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.clearFormFileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.exitFileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.debugMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainTabControl = new System.Windows.Forms.TabControl();
|
||||
this.projectionTabPage = new System.Windows.Forms.TabPage();
|
||||
this.projectionsDataGridView = new System.Windows.Forms.DataGridView();
|
||||
@@ -107,6 +106,8 @@
|
||||
this.informationPanel = new System.Windows.Forms.Panel();
|
||||
this.errorLabel = new System.Windows.Forms.Label();
|
||||
this.addRecordButton = new System.Windows.Forms.Button();
|
||||
this.editMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.createNewRecordEditMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainLayoutPanel.SuspendLayout();
|
||||
this.mainMenuStrip.SuspendLayout();
|
||||
this.mainTabControl.SuspendLayout();
|
||||
@@ -163,7 +164,7 @@
|
||||
this.mainMenuStrip.ImageScalingSize = new System.Drawing.Size(24, 24);
|
||||
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.FileMainMenu,
|
||||
this.debugMainMenu});
|
||||
this.editMainMenu});
|
||||
this.mainMenuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.mainMenuStrip.Name = "mainMenuStrip";
|
||||
this.mainMenuStrip.Padding = new System.Windows.Forms.Padding(7, 2, 0, 2);
|
||||
@@ -192,12 +193,6 @@
|
||||
this.exitFileMainMenu.Size = new System.Drawing.Size(205, 34);
|
||||
this.exitFileMainMenu.Text = "E&xit";
|
||||
//
|
||||
// debugMainMenu
|
||||
//
|
||||
this.debugMainMenu.Name = "debugMainMenu";
|
||||
this.debugMainMenu.Size = new System.Drawing.Size(87, 31);
|
||||
this.debugMainMenu.Text = "&Debug";
|
||||
//
|
||||
// mainTabControl
|
||||
//
|
||||
this.mainLayoutPanel.SetColumnSpan(this.mainTabControl, 4);
|
||||
@@ -944,6 +939,21 @@
|
||||
this.addRecordButton.UseVisualStyleBackColor = true;
|
||||
this.addRecordButton.Click += new System.EventHandler(this.addRecordButton_Click);
|
||||
//
|
||||
// editMainMenu
|
||||
//
|
||||
this.editMainMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.createNewRecordEditMainMenu});
|
||||
this.editMainMenu.Name = "editMainMenu";
|
||||
this.editMainMenu.Size = new System.Drawing.Size(60, 31);
|
||||
this.editMainMenu.Text = "&Edit";
|
||||
//
|
||||
// createNewRecordEditMainMenu
|
||||
//
|
||||
this.createNewRecordEditMainMenu.Name = "createNewRecordEditMainMenu";
|
||||
this.createNewRecordEditMainMenu.Size = new System.Drawing.Size(283, 34);
|
||||
this.createNewRecordEditMainMenu.Text = "&Create New Record";
|
||||
this.createNewRecordEditMainMenu.Click += new System.EventHandler(this.createNewRecordEditMainMenu_Click);
|
||||
//
|
||||
// NewModifyRecord
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
|
||||
@@ -955,7 +965,6 @@
|
||||
this.Text = "Modify Record";
|
||||
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.NewModifyRecord_FormClosing);
|
||||
this.Load += new System.EventHandler(this.NewModifyRecord_Load);
|
||||
this.mainLayoutPanel.ResumeLayout(false);
|
||||
this.mainLayoutPanel.PerformLayout();
|
||||
this.mainMenuStrip.ResumeLayout(false);
|
||||
@@ -997,7 +1006,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem FileMainMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem clearFormFileMainMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem exitFileMainMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem debugMainMenu;
|
||||
private System.Windows.Forms.TabControl mainTabControl;
|
||||
private System.Windows.Forms.TabPage projectionTabPage;
|
||||
private System.Windows.Forms.DataGridView projectionsDataGridView;
|
||||
@@ -1071,5 +1079,7 @@
|
||||
private System.Windows.Forms.Panel informationPanel;
|
||||
private System.Windows.Forms.Label errorLabel;
|
||||
private System.Windows.Forms.Button addRecordButton;
|
||||
private System.Windows.Forms.ToolStripMenuItem editMainMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem createNewRecordEditMainMenu;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user