diff --git a/C968Project/C968Project.csproj.user b/C968Project/C968Project.csproj.user index 4da9b88..df91392 100644 --- a/C968Project/C968Project.csproj.user +++ b/C968Project/C968Project.csproj.user @@ -4,5 +4,8 @@ Form + + Form + \ No newline at end of file diff --git a/C968Project/Views/AddModifyProductScreen.Designer.cs b/C968Project/Views/AddModifyProductScreen.Designer.cs new file mode 100644 index 0000000..5f744c0 --- /dev/null +++ b/C968Project/Views/AddModifyProductScreen.Designer.cs @@ -0,0 +1,313 @@ +namespace C968Project.Views +{ + partial class AddModifyProductScreen + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + screenLabel = new Label(); + idLabel = new Label(); + idTextBox = new TextBox(); + label1 = new Label(); + nameTextBox = new TextBox(); + label2 = new Label(); + inventoryTextBox = new TextBox(); + label3 = new Label(); + priceTextBox = new TextBox(); + label7 = new Label(); + minTextBox = new TextBox(); + label6 = new Label(); + maxTextBox = new TextBox(); + searchButton = new Button(); + searchTextBox = new TextBox(); + allPartsDataGridView = new DataGridView(); + label4 = new Label(); + label5 = new Label(); + associatedPartsDataGridView = new DataGridView(); + addButton = new Button(); + deleteButton = new Button(); + cancelButton = new Button(); + saveButton = new Button(); + ((System.ComponentModel.ISupportInitialize)allPartsDataGridView).BeginInit(); + ((System.ComponentModel.ISupportInitialize)associatedPartsDataGridView).BeginInit(); + SuspendLayout(); + // + // screenLabel + // + screenLabel.AutoSize = true; + screenLabel.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0); + screenLabel.Location = new Point(12, 9); + screenLabel.Name = "screenLabel"; + screenLabel.Size = new Size(117, 21); + screenLabel.TabIndex = 0; + screenLabel.Text = "Modify Product"; + // + // idLabel + // + idLabel.AutoSize = true; + idLabel.Location = new Point(20, 221); + idLabel.Name = "idLabel"; + idLabel.Size = new Size(18, 15); + idLabel.TabIndex = 2; + idLabel.Text = "ID"; + // + // idTextBox + // + idTextBox.Enabled = false; + idTextBox.Location = new Point(96, 218); + idTextBox.Name = "idTextBox"; + idTextBox.Size = new Size(153, 23); + idTextBox.TabIndex = 3; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new Point(20, 250); + label1.Name = "label1"; + label1.Size = new Size(39, 15); + label1.TabIndex = 4; + label1.Text = "Name"; + // + // nameTextBox + // + nameTextBox.Location = new Point(96, 247); + nameTextBox.Name = "nameTextBox"; + nameTextBox.Size = new Size(153, 23); + nameTextBox.TabIndex = 5; + // + // label2 + // + label2.AutoSize = true; + label2.Location = new Point(20, 279); + label2.Name = "label2"; + label2.Size = new Size(57, 15); + label2.TabIndex = 6; + label2.Text = "Inventory"; + // + // inventoryTextBox + // + inventoryTextBox.Location = new Point(96, 276); + inventoryTextBox.Name = "inventoryTextBox"; + inventoryTextBox.Size = new Size(153, 23); + inventoryTextBox.TabIndex = 7; + // + // label3 + // + label3.AutoSize = true; + label3.Location = new Point(20, 308); + label3.Name = "label3"; + label3.Size = new Size(33, 15); + label3.TabIndex = 8; + label3.Text = "Price"; + // + // priceTextBox + // + priceTextBox.Location = new Point(96, 305); + priceTextBox.Name = "priceTextBox"; + priceTextBox.Size = new Size(153, 23); + priceTextBox.TabIndex = 9; + // + // label7 + // + label7.AutoSize = true; + label7.Location = new Point(191, 337); + label7.Name = "label7"; + label7.Size = new Size(28, 15); + label7.TabIndex = 17; + label7.Text = "Min"; + // + // minTextBox + // + minTextBox.Location = new Point(244, 334); + minTextBox.Name = "minTextBox"; + minTextBox.Size = new Size(69, 23); + minTextBox.TabIndex = 18; + // + // label6 + // + label6.AutoSize = true; + label6.Location = new Point(20, 337); + label6.Name = "label6"; + label6.Size = new Size(29, 15); + label6.TabIndex = 15; + label6.Text = "Max"; + // + // maxTextBox + // + maxTextBox.Location = new Point(96, 334); + maxTextBox.Name = "maxTextBox"; + maxTextBox.Size = new Size(69, 23); + maxTextBox.TabIndex = 16; + // + // searchButton + // + searchButton.Location = new Point(599, 52); + searchButton.Name = "searchButton"; + searchButton.Size = new Size(75, 23); + searchButton.TabIndex = 19; + searchButton.Text = "Search"; + searchButton.UseVisualStyleBackColor = true; + // + // searchTextBox + // + searchTextBox.Location = new Point(680, 52); + searchTextBox.Name = "searchTextBox"; + searchTextBox.Size = new Size(209, 23); + searchTextBox.TabIndex = 20; + // + // allPartsDataGridView + // + allPartsDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + allPartsDataGridView.Location = new Point(407, 91); + allPartsDataGridView.Name = "allPartsDataGridView"; + allPartsDataGridView.Size = new Size(482, 150); + allPartsDataGridView.TabIndex = 21; + // + // label4 + // + label4.AutoSize = true; + label4.Location = new Point(407, 60); + label4.Name = "label4"; + label4.Size = new Size(107, 15); + label4.TabIndex = 22; + label4.Text = "All Candidate Parts"; + // + // label5 + // + label5.AutoSize = true; + label5.Location = new Point(407, 334); + label5.Name = "label5"; + label5.Size = new Size(186, 15); + label5.TabIndex = 26; + label5.Text = "Parts Associated with this Product"; + // + // associatedPartsDataGridView + // + associatedPartsDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + associatedPartsDataGridView.Location = new Point(407, 361); + associatedPartsDataGridView.Name = "associatedPartsDataGridView"; + associatedPartsDataGridView.Size = new Size(482, 150); + associatedPartsDataGridView.TabIndex = 25; + // + // addButton + // + addButton.Location = new Point(814, 247); + addButton.Name = "addButton"; + addButton.Size = new Size(75, 23); + addButton.TabIndex = 27; + addButton.Text = "Add"; + addButton.UseVisualStyleBackColor = true; + // + // deleteButton + // + deleteButton.Location = new Point(814, 517); + deleteButton.Name = "deleteButton"; + deleteButton.Size = new Size(75, 23); + deleteButton.TabIndex = 28; + deleteButton.Text = "Delete"; + deleteButton.UseVisualStyleBackColor = true; + // + // cancelButton + // + cancelButton.Location = new Point(868, 594); + cancelButton.Name = "cancelButton"; + cancelButton.Size = new Size(75, 23); + cancelButton.TabIndex = 30; + cancelButton.Text = "Cancel"; + cancelButton.UseVisualStyleBackColor = true; + // + // saveButton + // + saveButton.Location = new Point(787, 594); + saveButton.Name = "saveButton"; + saveButton.Size = new Size(75, 23); + saveButton.TabIndex = 29; + saveButton.Text = "Save"; + saveButton.UseVisualStyleBackColor = true; + // + // AddModifyProductScreen + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(955, 629); + Controls.Add(cancelButton); + Controls.Add(saveButton); + Controls.Add(deleteButton); + Controls.Add(addButton); + Controls.Add(label5); + Controls.Add(associatedPartsDataGridView); + Controls.Add(label4); + Controls.Add(allPartsDataGridView); + Controls.Add(searchTextBox); + Controls.Add(searchButton); + Controls.Add(label7); + Controls.Add(minTextBox); + Controls.Add(label6); + Controls.Add(maxTextBox); + Controls.Add(label3); + Controls.Add(priceTextBox); + Controls.Add(label2); + Controls.Add(inventoryTextBox); + Controls.Add(label1); + Controls.Add(nameTextBox); + Controls.Add(idLabel); + Controls.Add(idTextBox); + Controls.Add(screenLabel); + Name = "AddModifyProductScreen"; + Text = "Product"; + ((System.ComponentModel.ISupportInitialize)allPartsDataGridView).EndInit(); + ((System.ComponentModel.ISupportInitialize)associatedPartsDataGridView).EndInit(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private Label screenLabel; + private Label idLabel; + private TextBox idTextBox; + private Label label1; + private TextBox nameTextBox; + private Label label2; + private TextBox inventoryTextBox; + private Label label3; + private TextBox priceTextBox; + private Label label7; + private TextBox minTextBox; + private Label label6; + private TextBox maxTextBox; + private Button searchButton; + private TextBox searchTextBox; + private DataGridView allPartsDataGridView; + private Label label4; + private Label label5; + private DataGridView associatedPartsDataGridView; + private Button addButton; + private Button deleteButton; + private Button cancelButton; + private Button saveButton; + } +} \ No newline at end of file diff --git a/C968Project/Views/AddModifyProductScreen.cs b/C968Project/Views/AddModifyProductScreen.cs new file mode 100644 index 0000000..620be9a --- /dev/null +++ b/C968Project/Views/AddModifyProductScreen.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace C968Project.Views +{ + public partial class AddModifyProductScreen : Form + { + public AddModifyProductScreen() + { + InitializeComponent(); + } + } +} diff --git a/C968Project/Views/AddModifyProductScreen.resx b/C968Project/Views/AddModifyProductScreen.resx new file mode 100644 index 0000000..8b2ff64 --- /dev/null +++ b/C968Project/Views/AddModifyProductScreen.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file