Part screen
This commit is contained in:
parent
3eb5529f78
commit
ba85e6e3c0
@ -1,2 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Compile Update="Views\AddModifyPartScreen.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
</Project>
|
267
C968Project/Views/AddModifyPartScreen.Designer.cs
generated
Normal file
267
C968Project/Views/AddModifyPartScreen.Designer.cs
generated
Normal file
@ -0,0 +1,267 @@
|
||||
namespace C968Project.Views
|
||||
{
|
||||
partial class AddModifyPartScreen
|
||||
{
|
||||
/// <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();
|
||||
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;
|
||||
}
|
||||
}
|
20
C968Project/Views/AddModifyPartScreen.cs
Normal file
20
C968Project/Views/AddModifyPartScreen.cs
Normal 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 AddModifyPartScreen : Form
|
||||
{
|
||||
public AddModifyPartScreen()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
120
C968Project/Views/AddModifyPartScreen.resx
Normal file
120
C968Project/Views/AddModifyPartScreen.resx
Normal 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>
|
187
C968Project/Views/MainScreen.Designer.cs
generated
187
C968Project/Views/MainScreen.Designer.cs
generated
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user