product screen form

This commit is contained in:
Chris Bell 2025-05-13 23:17:03 -05:00
parent ba85e6e3c0
commit 62a230cc19
4 changed files with 456 additions and 0 deletions

View File

@ -4,5 +4,8 @@
<Compile Update="Views\AddModifyPartScreen.cs">
<SubType>Form</SubType>
</Compile>
<Compile Update="Views\AddModifyProductScreen.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>

View File

@ -0,0 +1,313 @@
namespace C968Project.Views
{
partial class AddModifyProductScreen
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
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;
}
}

View File

@ -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();
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>