diff --git a/C968Project/C968Project.csproj.user b/C968Project/C968Project.csproj.user
index 317a8c7..4da9b88 100644
--- a/C968Project/C968Project.csproj.user
+++ b/C968Project/C968Project.csproj.user
@@ -1,2 +1,8 @@
-
\ No newline at end of file
+
+
+
+ Form
+
+
+
\ No newline at end of file
diff --git a/C968Project/Views/AddModifyPartScreen.Designer.cs b/C968Project/Views/AddModifyPartScreen.Designer.cs
new file mode 100644
index 0000000..7dffd8a
--- /dev/null
+++ b/C968Project/Views/AddModifyPartScreen.Designer.cs
@@ -0,0 +1,267 @@
+namespace C968Project.Views
+{
+ partial class AddModifyPartScreen
+ {
+ ///
+ /// 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();
+ inHouseRadioButton = new RadioButton();
+ outsourcedRadioButton = new RadioButton();
+ idLabel = new Label();
+ idTextBox = new TextBox();
+ nameLabel = new Label();
+ textBox2 = new TextBox();
+ inventoryLabel = new Label();
+ inventoryTextBox = new TextBox();
+ priceCostLabel = new Label();
+ priceCostTextBox = new TextBox();
+ machineCompanyLabel = new Label();
+ machineCompanyTextBox = new TextBox();
+ label6 = new Label();
+ maxTextBox = new TextBox();
+ label7 = new Label();
+ minTextBox = new TextBox();
+ saveButton = new Button();
+ cancelButton = new Button();
+ SuspendLayout();
+ //
+ // screenLabel
+ //
+ screenLabel.AutoSize = true;
+ screenLabel.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
+ screenLabel.Location = new Point(12, 13);
+ screenLabel.Name = "screenLabel";
+ screenLabel.Size = new Size(90, 21);
+ screenLabel.TabIndex = 0;
+ screenLabel.Text = "Modify Part";
+ //
+ // inHouseRadioButton
+ //
+ inHouseRadioButton.AutoSize = true;
+ inHouseRadioButton.Location = new Point(120, 16);
+ inHouseRadioButton.Name = "inHouseRadioButton";
+ inHouseRadioButton.Size = new Size(74, 19);
+ inHouseRadioButton.TabIndex = 1;
+ inHouseRadioButton.TabStop = true;
+ inHouseRadioButton.Text = "In-House";
+ inHouseRadioButton.UseVisualStyleBackColor = true;
+ //
+ // outsourcedRadioButton
+ //
+ outsourcedRadioButton.AutoSize = true;
+ outsourcedRadioButton.Location = new Point(216, 16);
+ outsourcedRadioButton.Name = "outsourcedRadioButton";
+ outsourcedRadioButton.Size = new Size(87, 19);
+ outsourcedRadioButton.TabIndex = 2;
+ outsourcedRadioButton.TabStop = true;
+ outsourcedRadioButton.Text = "Outsourced";
+ outsourcedRadioButton.UseVisualStyleBackColor = true;
+ //
+ // idLabel
+ //
+ idLabel.AutoSize = true;
+ idLabel.Location = new Point(176, 101);
+ idLabel.Name = "idLabel";
+ idLabel.Size = new Size(18, 15);
+ idLabel.TabIndex = 0;
+ idLabel.Text = "ID";
+ //
+ // idTextBox
+ //
+ idTextBox.Enabled = false;
+ idTextBox.Location = new Point(234, 98);
+ idTextBox.Name = "idTextBox";
+ idTextBox.Size = new Size(153, 23);
+ idTextBox.TabIndex = 1;
+ //
+ // nameLabel
+ //
+ nameLabel.AutoSize = true;
+ nameLabel.Location = new Point(155, 130);
+ nameLabel.Name = "nameLabel";
+ nameLabel.Size = new Size(39, 15);
+ nameLabel.TabIndex = 3;
+ nameLabel.Text = "Name";
+ //
+ // textBox2
+ //
+ textBox2.Location = new Point(234, 127);
+ textBox2.Name = "textBox2";
+ textBox2.Size = new Size(153, 23);
+ textBox2.TabIndex = 4;
+ //
+ // inventoryLabel
+ //
+ inventoryLabel.AutoSize = true;
+ inventoryLabel.Location = new Point(137, 159);
+ inventoryLabel.Name = "inventoryLabel";
+ inventoryLabel.Size = new Size(57, 15);
+ inventoryLabel.TabIndex = 5;
+ inventoryLabel.Text = "Inventory";
+ //
+ // inventoryTextBox
+ //
+ inventoryTextBox.Location = new Point(234, 156);
+ inventoryTextBox.Name = "inventoryTextBox";
+ inventoryTextBox.Size = new Size(153, 23);
+ inventoryTextBox.TabIndex = 6;
+ //
+ // priceCostLabel
+ //
+ priceCostLabel.AutoSize = true;
+ priceCostLabel.Location = new Point(126, 188);
+ priceCostLabel.Name = "priceCostLabel";
+ priceCostLabel.Size = new Size(68, 15);
+ priceCostLabel.TabIndex = 7;
+ priceCostLabel.Text = "Price / Cost";
+ //
+ // priceCostTextBox
+ //
+ priceCostTextBox.Location = new Point(234, 185);
+ priceCostTextBox.Name = "priceCostTextBox";
+ priceCostTextBox.Size = new Size(153, 23);
+ priceCostTextBox.TabIndex = 8;
+ //
+ // machineCompanyLabel
+ //
+ machineCompanyLabel.AutoSize = true;
+ machineCompanyLabel.Location = new Point(127, 282);
+ machineCompanyLabel.Name = "machineCompanyLabel";
+ machineCompanyLabel.Size = new Size(67, 15);
+ machineCompanyLabel.TabIndex = 9;
+ machineCompanyLabel.Text = "Machine ID";
+ //
+ // machineCompanyTextBox
+ //
+ machineCompanyTextBox.Location = new Point(234, 279);
+ machineCompanyTextBox.Name = "machineCompanyTextBox";
+ machineCompanyTextBox.Size = new Size(153, 23);
+ machineCompanyTextBox.TabIndex = 10;
+ //
+ // label6
+ //
+ label6.AutoSize = true;
+ label6.Location = new Point(165, 235);
+ label6.Name = "label6";
+ label6.Size = new Size(29, 15);
+ label6.TabIndex = 11;
+ label6.Text = "Max";
+ //
+ // maxTextBox
+ //
+ maxTextBox.Location = new Point(234, 232);
+ maxTextBox.Name = "maxTextBox";
+ maxTextBox.Size = new Size(69, 23);
+ maxTextBox.TabIndex = 12;
+ //
+ // label7
+ //
+ label7.AutoSize = true;
+ label7.Location = new Point(329, 235);
+ label7.Name = "label7";
+ label7.Size = new Size(28, 15);
+ label7.TabIndex = 13;
+ label7.Text = "Min";
+ //
+ // minTextBox
+ //
+ minTextBox.Location = new Point(382, 232);
+ minTextBox.Name = "minTextBox";
+ minTextBox.Size = new Size(69, 23);
+ minTextBox.TabIndex = 14;
+ //
+ // saveButton
+ //
+ saveButton.Location = new Point(425, 366);
+ saveButton.Name = "saveButton";
+ saveButton.Size = new Size(75, 23);
+ saveButton.TabIndex = 15;
+ saveButton.Text = "Save";
+ saveButton.UseVisualStyleBackColor = true;
+ //
+ // cancelButton
+ //
+ cancelButton.Location = new Point(506, 366);
+ cancelButton.Name = "cancelButton";
+ cancelButton.Size = new Size(75, 23);
+ cancelButton.TabIndex = 16;
+ cancelButton.Text = "Cancel";
+ cancelButton.UseVisualStyleBackColor = true;
+ //
+ // AddModifyPartScreen
+ //
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(593, 401);
+ Controls.Add(cancelButton);
+ Controls.Add(saveButton);
+ Controls.Add(label7);
+ Controls.Add(minTextBox);
+ Controls.Add(label6);
+ Controls.Add(maxTextBox);
+ Controls.Add(machineCompanyLabel);
+ Controls.Add(machineCompanyTextBox);
+ Controls.Add(priceCostLabel);
+ Controls.Add(priceCostTextBox);
+ Controls.Add(inventoryLabel);
+ Controls.Add(inventoryTextBox);
+ Controls.Add(nameLabel);
+ Controls.Add(textBox2);
+ Controls.Add(idLabel);
+ Controls.Add(idTextBox);
+ Controls.Add(outsourcedRadioButton);
+ Controls.Add(inHouseRadioButton);
+ Controls.Add(screenLabel);
+ Name = "AddModifyPartScreen";
+ Text = "Part";
+ ResumeLayout(false);
+ PerformLayout();
+ }
+
+ #endregion
+
+ private Label screenLabel;
+ private RadioButton inHouseRadioButton;
+ private RadioButton outsourcedRadioButton;
+ private TextBox idTextBox;
+ private Label idLabel;
+ private Label nameLabel;
+ private TextBox textBox2;
+ private Label inventoryLabel;
+ private TextBox inventoryTextBox;
+ private Label priceCostLabel;
+ private TextBox priceCostTextBox;
+ private Label machineCompanyLabel;
+ private TextBox machineCompanyTextBox;
+ private Label label6;
+ private TextBox maxTextBox;
+ private Label label7;
+ private TextBox minTextBox;
+ private Button saveButton;
+ private Button cancelButton;
+ }
+}
\ No newline at end of file
diff --git a/C968Project/Views/AddModifyPartScreen.cs b/C968Project/Views/AddModifyPartScreen.cs
new file mode 100644
index 0000000..3c36dac
--- /dev/null
+++ b/C968Project/Views/AddModifyPartScreen.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 AddModifyPartScreen : Form
+ {
+ public AddModifyPartScreen()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/C968Project/Views/AddModifyPartScreen.resx b/C968Project/Views/AddModifyPartScreen.resx
new file mode 100644
index 0000000..8b2ff64
--- /dev/null
+++ b/C968Project/Views/AddModifyPartScreen.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
diff --git a/C968Project/Views/MainScreen.Designer.cs b/C968Project/Views/MainScreen.Designer.cs
index 9721bf0..0f9e006 100644
--- a/C968Project/Views/MainScreen.Designer.cs
+++ b/C968Project/Views/MainScreen.Designer.cs
@@ -32,14 +32,6 @@ partial class MainScreen
private void InitializeComponent()
{
panel1 = new Panel();
- partsDataGridView = new DataGridView();
- mainScreenLabel = new Label();
- label2 = new Label();
- partsSearchTextBox = new TextBox();
- partsSearchButton = new Button();
- partsAddButton = new Button();
- partsModifyButton = new Button();
- partsDeleteButton = new Button();
productsDeleteButton = new Button();
productsModifyButton = new Button();
productsAddButton = new Button();
@@ -47,15 +39,25 @@ partial class MainScreen
productsSearchTextBox = new TextBox();
productsLabel = new Label();
productsDataGridView = new DataGridView();
+ partsDeleteButton = new Button();
+ partsModifyButton = new Button();
+ partsAddButton = new Button();
+ partsSearchButton = new Button();
+ partsSearchTextBox = new TextBox();
+ label2 = new Label();
+ mainScreenLabel = new Label();
+ partsDataGridView = new DataGridView();
+ exitButton = new Button();
panel1.SuspendLayout();
- ((ISupportInitialize)partsDataGridView).BeginInit();
((ISupportInitialize)productsDataGridView).BeginInit();
+ ((ISupportInitialize)partsDataGridView).BeginInit();
SuspendLayout();
//
// panel1
//
panel1.AutoSize = true;
panel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
+ panel1.Controls.Add(exitButton);
panel1.Controls.Add(productsDeleteButton);
panel1.Controls.Add(productsModifyButton);
panel1.Controls.Add(productsAddButton);
@@ -78,83 +80,6 @@ partial class MainScreen
panel1.Size = new Size(929, 450);
panel1.TabIndex = 0;
//
- // partsDataGridView
- //
- partsDataGridView.Anchor = AnchorStyles.Left;
- partsDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- partsDataGridView.Location = new Point(12, 112);
- partsDataGridView.Name = "partsDataGridView";
- partsDataGridView.Size = new Size(440, 162);
- partsDataGridView.TabIndex = 0;
- //
- // mainScreenLabel
- //
- mainScreenLabel.AutoSize = true;
- mainScreenLabel.Location = new Point(12, 9);
- mainScreenLabel.Name = "mainScreenLabel";
- mainScreenLabel.Size = new Size(172, 15);
- mainScreenLabel.TabIndex = 2;
- mainScreenLabel.Text = "Inventory Management System";
- //
- // label2
- //
- label2.Anchor = AnchorStyles.Left;
- label2.AutoSize = true;
- label2.Location = new Point(12, 83);
- label2.Name = "label2";
- label2.Size = new Size(33, 15);
- label2.TabIndex = 3;
- label2.Text = "Parts";
- //
- // partsSearchTextBox
- //
- partsSearchTextBox.Anchor = AnchorStyles.Left;
- partsSearchTextBox.Location = new Point(274, 75);
- partsSearchTextBox.Name = "partsSearchTextBox";
- partsSearchTextBox.Size = new Size(178, 23);
- partsSearchTextBox.TabIndex = 4;
- //
- // partsSearchButton
- //
- partsSearchButton.Anchor = AnchorStyles.Left;
- partsSearchButton.Location = new Point(215, 75);
- partsSearchButton.Name = "partsSearchButton";
- partsSearchButton.Size = new Size(53, 23);
- partsSearchButton.TabIndex = 5;
- partsSearchButton.Text = "Search";
- partsSearchButton.TextImageRelation = TextImageRelation.ImageAboveText;
- partsSearchButton.UseVisualStyleBackColor = true;
- //
- // partsAddButton
- //
- partsAddButton.Anchor = AnchorStyles.Left;
- partsAddButton.Location = new Point(297, 289);
- partsAddButton.Name = "partsAddButton";
- partsAddButton.Size = new Size(42, 23);
- partsAddButton.TabIndex = 6;
- partsAddButton.Text = "Add";
- partsAddButton.UseVisualStyleBackColor = true;
- //
- // partsModifyButton
- //
- partsModifyButton.Anchor = AnchorStyles.Left;
- partsModifyButton.Location = new Point(345, 289);
- partsModifyButton.Name = "partsModifyButton";
- partsModifyButton.Size = new Size(53, 23);
- partsModifyButton.TabIndex = 7;
- partsModifyButton.Text = "Modify";
- partsModifyButton.UseVisualStyleBackColor = true;
- //
- // partsDeleteButton
- //
- partsDeleteButton.Anchor = AnchorStyles.Left;
- partsDeleteButton.Location = new Point(404, 289);
- partsDeleteButton.Name = "partsDeleteButton";
- partsDeleteButton.Size = new Size(48, 23);
- partsDeleteButton.TabIndex = 8;
- partsDeleteButton.Text = "Delete";
- partsDeleteButton.UseVisualStyleBackColor = true;
- //
// productsDeleteButton
//
productsDeleteButton.Anchor = AnchorStyles.Right;
@@ -223,6 +148,93 @@ partial class MainScreen
productsDataGridView.Size = new Size(440, 162);
productsDataGridView.TabIndex = 9;
//
+ // partsDeleteButton
+ //
+ partsDeleteButton.Anchor = AnchorStyles.Left;
+ partsDeleteButton.Location = new Point(404, 289);
+ partsDeleteButton.Name = "partsDeleteButton";
+ partsDeleteButton.Size = new Size(48, 23);
+ partsDeleteButton.TabIndex = 8;
+ partsDeleteButton.Text = "Delete";
+ partsDeleteButton.UseVisualStyleBackColor = true;
+ //
+ // partsModifyButton
+ //
+ partsModifyButton.Anchor = AnchorStyles.Left;
+ partsModifyButton.Location = new Point(345, 289);
+ partsModifyButton.Name = "partsModifyButton";
+ partsModifyButton.Size = new Size(53, 23);
+ partsModifyButton.TabIndex = 7;
+ partsModifyButton.Text = "Modify";
+ partsModifyButton.UseVisualStyleBackColor = true;
+ //
+ // partsAddButton
+ //
+ partsAddButton.Anchor = AnchorStyles.Left;
+ partsAddButton.Location = new Point(297, 289);
+ partsAddButton.Name = "partsAddButton";
+ partsAddButton.Size = new Size(42, 23);
+ partsAddButton.TabIndex = 6;
+ partsAddButton.Text = "Add";
+ partsAddButton.UseVisualStyleBackColor = true;
+ //
+ // partsSearchButton
+ //
+ partsSearchButton.Anchor = AnchorStyles.Left;
+ partsSearchButton.Location = new Point(215, 75);
+ partsSearchButton.Name = "partsSearchButton";
+ partsSearchButton.Size = new Size(53, 23);
+ partsSearchButton.TabIndex = 5;
+ partsSearchButton.Text = "Search";
+ partsSearchButton.TextImageRelation = TextImageRelation.ImageAboveText;
+ partsSearchButton.UseVisualStyleBackColor = true;
+ //
+ // partsSearchTextBox
+ //
+ partsSearchTextBox.Anchor = AnchorStyles.Left;
+ partsSearchTextBox.Location = new Point(274, 75);
+ partsSearchTextBox.Name = "partsSearchTextBox";
+ partsSearchTextBox.Size = new Size(178, 23);
+ partsSearchTextBox.TabIndex = 4;
+ //
+ // label2
+ //
+ label2.Anchor = AnchorStyles.Left;
+ label2.AutoSize = true;
+ label2.Location = new Point(12, 83);
+ label2.Name = "label2";
+ label2.Size = new Size(33, 15);
+ label2.TabIndex = 3;
+ label2.Text = "Parts";
+ //
+ // mainScreenLabel
+ //
+ mainScreenLabel.AutoSize = true;
+ mainScreenLabel.Location = new Point(12, 9);
+ mainScreenLabel.Name = "mainScreenLabel";
+ mainScreenLabel.Size = new Size(172, 15);
+ mainScreenLabel.TabIndex = 2;
+ mainScreenLabel.Text = "Inventory Management System";
+ //
+ // partsDataGridView
+ //
+ partsDataGridView.Anchor = AnchorStyles.Left;
+ partsDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ partsDataGridView.Location = new Point(12, 112);
+ partsDataGridView.Name = "partsDataGridView";
+ partsDataGridView.Size = new Size(440, 162);
+ partsDataGridView.TabIndex = 0;
+ //
+ // exitButton
+ //
+ exitButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
+ exitButton.Location = new Point(842, 415);
+ exitButton.Name = "exitButton";
+ exitButton.Size = new Size(75, 23);
+ exitButton.TabIndex = 16;
+ exitButton.Text = "Exit";
+ exitButton.UseVisualStyleBackColor = true;
+ //
// MainScreen
//
AutoScaleDimensions = new SizeF(7F, 15F);
@@ -235,8 +247,8 @@ partial class MainScreen
Text = "Main Screen";
panel1.ResumeLayout(false);
panel1.PerformLayout();
- ((ISupportInitialize)partsDataGridView).EndInit();
((ISupportInitialize)productsDataGridView).EndInit();
+ ((ISupportInitialize)partsDataGridView).EndInit();
ResumeLayout(false);
PerformLayout();
}
@@ -260,4 +272,5 @@ partial class MainScreen
private Label productsLabel;
private DataGridView productsDataGridView;
private Button partsDeleteButton;
+ private Button exitButton;
}
\ No newline at end of file