diff --git a/.vs/InventoryTest/v16/.suo b/.vs/InventoryTest/v16/.suo index df123e9..a04aa4e 100644 Binary files a/.vs/InventoryTest/v16/.suo and b/.vs/InventoryTest/v16/.suo differ diff --git a/InventoryTest/Form1.Designer.cs b/InventoryTest/Form1.Designer.cs index f468409..0e5b2ff 100644 --- a/InventoryTest/Form1.Designer.cs +++ b/InventoryTest/Form1.Designer.cs @@ -36,16 +36,39 @@ namespace InventoryTest this.toolsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ManageCategoriesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.CategorySelectionComboBox = new System.Windows.Forms.ComboBox(); - this.SubCategorySelectionComboBox = new System.Windows.Forms.ComboBox(); - this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.SubCategorySelectionComboBox = new System.Windows.Forms.ComboBox(); + this.CategorySelectionComboBox = new System.Windows.Forms.ComboBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.ItemListView = new System.Windows.Forms.ListView(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.groupBox4 = new System.Windows.Forms.GroupBox(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.label7 = new System.Windows.Forms.Label(); + this.CorePropertySoldCheckBox = new System.Windows.Forms.CheckBox(); + this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.CorePropertyNameTextBox = new System.Windows.Forms.TextBox(); + this.CorePropertyValueTextBox = new System.Windows.Forms.TextBox(); + this.CorePropertyBoughtForTextBox = new System.Windows.Forms.TextBox(); + this.CorePropertyDateAquiredDateTimePicker = new System.Windows.Forms.DateTimePicker(); + this.CorePropertySoldForTextBox = new System.Windows.Forms.TextBox(); + this.CorePropertyDateSoldDateTimePicker = new System.Windows.Forms.DateTimePicker(); + this.CorePropertySoldToTextBox = new System.Windows.Forms.TextBox(); + this.CorePropertyCommentTextBox = new System.Windows.Forms.TextBox(); + this.CorePropertyNotesTextBox = new System.Windows.Forms.TextBox(); this.MainLayoutPanel.SuspendLayout(); this.menuStrip1.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.groupBox4.SuspendLayout(); + this.groupBox5.SuspendLayout(); this.SuspendLayout(); // // MainLayoutPanel @@ -58,6 +81,9 @@ namespace InventoryTest this.MainLayoutPanel.Controls.Add(this.menuStrip1, 0, 0); this.MainLayoutPanel.Controls.Add(this.groupBox1, 0, 1); this.MainLayoutPanel.Controls.Add(this.groupBox2, 0, 2); + this.MainLayoutPanel.Controls.Add(this.groupBox3, 0, 3); + this.MainLayoutPanel.Controls.Add(this.groupBox4, 1, 3); + this.MainLayoutPanel.Controls.Add(this.groupBox5, 1, 4); this.MainLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.MainLayoutPanel.Location = new System.Drawing.Point(0, 0); this.MainLayoutPanel.Name = "MainLayoutPanel"; @@ -124,23 +150,14 @@ namespace InventoryTest this.groupBox1.TabStop = false; this.groupBox1.Text = "Category Selection"; // - // CategorySelectionComboBox + // label2 // - this.CategorySelectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CategorySelectionComboBox.FormattingEnabled = true; - this.CategorySelectionComboBox.Location = new System.Drawing.Point(94, 22); - this.CategorySelectionComboBox.Name = "CategorySelectionComboBox"; - this.CategorySelectionComboBox.Size = new System.Drawing.Size(216, 23); - this.CategorySelectionComboBox.TabIndex = 0; - // - // SubCategorySelectionComboBox - // - this.SubCategorySelectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.SubCategorySelectionComboBox.FormattingEnabled = true; - this.SubCategorySelectionComboBox.Location = new System.Drawing.Point(94, 62); - this.SubCategorySelectionComboBox.Name = "SubCategorySelectionComboBox"; - this.SubCategorySelectionComboBox.Size = new System.Drawing.Size(216, 23); - this.SubCategorySelectionComboBox.TabIndex = 1; + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(6, 65); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(83, 15); + this.label2.TabIndex = 3; + this.label2.Text = "Sub-Category:"; // // label1 // @@ -151,14 +168,23 @@ namespace InventoryTest this.label1.TabIndex = 2; this.label1.Text = "Category:"; // - // label2 + // SubCategorySelectionComboBox // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(6, 65); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(83, 15); - this.label2.TabIndex = 3; - this.label2.Text = "Sub-Category:"; + this.SubCategorySelectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.SubCategorySelectionComboBox.FormattingEnabled = true; + this.SubCategorySelectionComboBox.Location = new System.Drawing.Point(94, 62); + this.SubCategorySelectionComboBox.Name = "SubCategorySelectionComboBox"; + this.SubCategorySelectionComboBox.Size = new System.Drawing.Size(216, 23); + this.SubCategorySelectionComboBox.TabIndex = 1; + // + // CategorySelectionComboBox + // + this.CategorySelectionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CategorySelectionComboBox.FormattingEnabled = true; + this.CategorySelectionComboBox.Location = new System.Drawing.Point(94, 22); + this.CategorySelectionComboBox.Name = "CategorySelectionComboBox"; + this.CategorySelectionComboBox.Size = new System.Drawing.Size(216, 23); + this.CategorySelectionComboBox.TabIndex = 0; // // groupBox2 // @@ -181,6 +207,197 @@ namespace InventoryTest this.ItemListView.TabIndex = 0; this.ItemListView.UseCompatibleStateImageBehavior = false; // + // groupBox3 + // + this.groupBox3.Controls.Add(this.CorePropertySoldToTextBox); + this.groupBox3.Controls.Add(this.CorePropertyDateSoldDateTimePicker); + this.groupBox3.Controls.Add(this.CorePropertySoldForTextBox); + this.groupBox3.Controls.Add(this.CorePropertyDateAquiredDateTimePicker); + this.groupBox3.Controls.Add(this.CorePropertyBoughtForTextBox); + this.groupBox3.Controls.Add(this.CorePropertyValueTextBox); + this.groupBox3.Controls.Add(this.CorePropertyNameTextBox); + this.groupBox3.Controls.Add(this.label9); + this.groupBox3.Controls.Add(this.label8); + this.groupBox3.Controls.Add(this.CorePropertySoldCheckBox); + this.groupBox3.Controls.Add(this.label7); + this.groupBox3.Controls.Add(this.label6); + this.groupBox3.Controls.Add(this.label5); + this.groupBox3.Controls.Add(this.label4); + this.groupBox3.Controls.Add(this.label3); + this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox3.Location = new System.Drawing.Point(3, 324); + this.groupBox3.Name = "groupBox3"; + this.MainLayoutPanel.SetRowSpan(this.groupBox3, 2); + this.groupBox3.Size = new System.Drawing.Size(316, 291); + this.groupBox3.TabIndex = 3; + this.groupBox3.TabStop = false; + this.groupBox3.Text = "Core Properties"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(3, 19); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(42, 15); + this.label3.TabIndex = 0; + this.label3.Text = "Name:"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(6, 46); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(38, 15); + this.label4.TabIndex = 1; + this.label4.Text = "Value:"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(6, 73); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(69, 15); + this.label5.TabIndex = 2; + this.label5.Text = "Bought For:"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(6, 100); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(79, 15); + this.label6.TabIndex = 3; + this.label6.Text = "Date Aquired:"; + // + // groupBox4 + // + this.groupBox4.Controls.Add(this.CorePropertyCommentTextBox); + this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox4.Location = new System.Drawing.Point(325, 324); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(316, 142); + this.groupBox4.TabIndex = 4; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "Comment"; + // + // groupBox5 + // + this.groupBox5.Controls.Add(this.CorePropertyNotesTextBox); + this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox5.Location = new System.Drawing.Point(325, 472); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(316, 143); + this.groupBox5.TabIndex = 5; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "Notes"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(6, 127); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(53, 15); + this.label7.TabIndex = 4; + this.label7.Text = "Sold For:"; + // + // CorePropertySoldCheckBox + // + this.CorePropertySoldCheckBox.AutoSize = true; + this.CorePropertySoldCheckBox.Location = new System.Drawing.Point(6, 154); + this.CorePropertySoldCheckBox.Name = "CorePropertySoldCheckBox"; + this.CorePropertySoldCheckBox.RightToLeft = System.Windows.Forms.RightToLeft.Yes; + this.CorePropertySoldCheckBox.Size = new System.Drawing.Size(54, 19); + this.CorePropertySoldCheckBox.TabIndex = 5; + this.CorePropertySoldCheckBox.Text = "?Sold"; + this.CorePropertySoldCheckBox.UseVisualStyleBackColor = true; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(6, 185); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(60, 15); + this.label8.TabIndex = 6; + this.label8.Text = "Date Sold:"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(6, 212); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(48, 15); + this.label9.TabIndex = 7; + this.label9.Text = "Sold To:"; + // + // CorePropertyNameTextBox + // + this.CorePropertyNameTextBox.Location = new System.Drawing.Point(94, 16); + this.CorePropertyNameTextBox.Name = "CorePropertyNameTextBox"; + this.CorePropertyNameTextBox.Size = new System.Drawing.Size(216, 23); + this.CorePropertyNameTextBox.TabIndex = 8; + // + // CorePropertyValueTextBox + // + this.CorePropertyValueTextBox.Location = new System.Drawing.Point(94, 43); + this.CorePropertyValueTextBox.Name = "CorePropertyValueTextBox"; + this.CorePropertyValueTextBox.Size = new System.Drawing.Size(216, 23); + this.CorePropertyValueTextBox.TabIndex = 9; + // + // CorePropertyBoughtForTextBox + // + this.CorePropertyBoughtForTextBox.Location = new System.Drawing.Point(94, 70); + this.CorePropertyBoughtForTextBox.Name = "CorePropertyBoughtForTextBox"; + this.CorePropertyBoughtForTextBox.Size = new System.Drawing.Size(216, 23); + this.CorePropertyBoughtForTextBox.TabIndex = 10; + // + // CorePropertyDateAquiredDateTimePicker + // + this.CorePropertyDateAquiredDateTimePicker.Location = new System.Drawing.Point(94, 97); + this.CorePropertyDateAquiredDateTimePicker.Name = "CorePropertyDateAquiredDateTimePicker"; + this.CorePropertyDateAquiredDateTimePicker.Size = new System.Drawing.Size(216, 23); + this.CorePropertyDateAquiredDateTimePicker.TabIndex = 11; + // + // CorePropertySoldForTextBox + // + this.CorePropertySoldForTextBox.Location = new System.Drawing.Point(94, 124); + this.CorePropertySoldForTextBox.Name = "CorePropertySoldForTextBox"; + this.CorePropertySoldForTextBox.Size = new System.Drawing.Size(216, 23); + this.CorePropertySoldForTextBox.TabIndex = 12; + // + // CorePropertyDateSoldDateTimePicker + // + this.CorePropertyDateSoldDateTimePicker.Location = new System.Drawing.Point(94, 179); + this.CorePropertyDateSoldDateTimePicker.Name = "CorePropertyDateSoldDateTimePicker"; + this.CorePropertyDateSoldDateTimePicker.Size = new System.Drawing.Size(216, 23); + this.CorePropertyDateSoldDateTimePicker.TabIndex = 13; + // + // CorePropertySoldToTextBox + // + this.CorePropertySoldToTextBox.Location = new System.Drawing.Point(94, 209); + this.CorePropertySoldToTextBox.Name = "CorePropertySoldToTextBox"; + this.CorePropertySoldToTextBox.Size = new System.Drawing.Size(216, 23); + this.CorePropertySoldToTextBox.TabIndex = 14; + // + // CorePropertyCommentTextBox + // + this.CorePropertyCommentTextBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.CorePropertyCommentTextBox.Location = new System.Drawing.Point(3, 19); + this.CorePropertyCommentTextBox.Multiline = true; + this.CorePropertyCommentTextBox.Name = "CorePropertyCommentTextBox"; + this.CorePropertyCommentTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.CorePropertyCommentTextBox.Size = new System.Drawing.Size(310, 120); + this.CorePropertyCommentTextBox.TabIndex = 0; + // + // CorePropertyNotesTextBox + // + this.CorePropertyNotesTextBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.CorePropertyNotesTextBox.Location = new System.Drawing.Point(3, 19); + this.CorePropertyNotesTextBox.Multiline = true; + this.CorePropertyNotesTextBox.Name = "CorePropertyNotesTextBox"; + this.CorePropertyNotesTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.CorePropertyNotesTextBox.Size = new System.Drawing.Size(310, 121); + this.CorePropertyNotesTextBox.TabIndex = 0; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); @@ -197,6 +414,12 @@ namespace InventoryTest this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.groupBox2.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); + this.groupBox3.PerformLayout(); + this.groupBox4.ResumeLayout(false); + this.groupBox4.PerformLayout(); + this.groupBox5.ResumeLayout(false); + this.groupBox5.PerformLayout(); this.ResumeLayout(false); } @@ -216,6 +439,26 @@ namespace InventoryTest private System.Windows.Forms.ComboBox CategorySelectionComboBox; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.ListView ItemListView; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.CheckBox CorePropertySoldCheckBox; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.GroupBox groupBox4; + private System.Windows.Forms.GroupBox groupBox5; + private System.Windows.Forms.TextBox CorePropertySoldToTextBox; + private System.Windows.Forms.DateTimePicker CorePropertyDateSoldDateTimePicker; + private System.Windows.Forms.TextBox CorePropertySoldForTextBox; + private System.Windows.Forms.DateTimePicker CorePropertyDateAquiredDateTimePicker; + private System.Windows.Forms.TextBox CorePropertyBoughtForTextBox; + private System.Windows.Forms.TextBox CorePropertyValueTextBox; + private System.Windows.Forms.TextBox CorePropertyNameTextBox; + private System.Windows.Forms.TextBox CorePropertyCommentTextBox; + private System.Windows.Forms.TextBox CorePropertyNotesTextBox; } } diff --git a/InventoryTest/Form1.cs b/InventoryTest/Form1.cs index bbbd286..3f2c119 100644 --- a/InventoryTest/Form1.cs +++ b/InventoryTest/Form1.cs @@ -31,7 +31,7 @@ namespace InventoryTest private void ShowCategoryManagerForm(object sender, EventArgs e) { var form = new CategoryManager(ConnectionString); - form.Show(); + form.ShowDialog(); } } }