Removed a few unused columns and flags that didn't help improve the performance of the form or just made its code more cluttered. Created a separate method to handle calling the database writing code for the Sales Tables.
This commit is contained in:
+2
-22
@@ -44,8 +44,6 @@
|
||||
this.mainMenuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.FileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.exitFileMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.debugMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.getCellValueDebugMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.costAnalysisGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.suppliesTextBox = new System.Windows.Forms.TextBox();
|
||||
@@ -285,8 +283,7 @@
|
||||
this.mainLayoutPanel.SetColumnSpan(this.mainMenuStrip, 4);
|
||||
this.mainMenuStrip.ImageScalingSize = new System.Drawing.Size(24, 24);
|
||||
this.mainMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.FileMainMenu,
|
||||
this.debugMainMenu});
|
||||
this.FileMainMenu});
|
||||
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);
|
||||
@@ -305,24 +302,9 @@
|
||||
// exitFileMainMenu
|
||||
//
|
||||
this.exitFileMainMenu.Name = "exitFileMainMenu";
|
||||
this.exitFileMainMenu.Size = new System.Drawing.Size(138, 34);
|
||||
this.exitFileMainMenu.Size = new System.Drawing.Size(240, 34);
|
||||
this.exitFileMainMenu.Text = "E&xit";
|
||||
//
|
||||
// debugMainMenu
|
||||
//
|
||||
this.debugMainMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.getCellValueDebugMainMenu});
|
||||
this.debugMainMenu.Name = "debugMainMenu";
|
||||
this.debugMainMenu.Size = new System.Drawing.Size(87, 31);
|
||||
this.debugMainMenu.Text = "Debug";
|
||||
//
|
||||
// getCellValueDebugMainMenu
|
||||
//
|
||||
this.getCellValueDebugMainMenu.Name = "getCellValueDebugMainMenu";
|
||||
this.getCellValueDebugMainMenu.Size = new System.Drawing.Size(233, 34);
|
||||
this.getCellValueDebugMainMenu.Text = "Get Cell Value";
|
||||
this.getCellValueDebugMainMenu.Click += new System.EventHandler(this.getCellValueDebugMainMenu_Click);
|
||||
//
|
||||
// mainLayoutPanel
|
||||
//
|
||||
this.mainLayoutPanel.ColumnCount = 4;
|
||||
@@ -977,7 +959,5 @@
|
||||
private System.Windows.Forms.Panel informationPanel;
|
||||
private System.Windows.Forms.Label errorLabel;
|
||||
private System.Windows.Forms.Label informationLabel;
|
||||
private System.Windows.Forms.ToolStripMenuItem debugMainMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem getCellValueDebugMainMenu;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user