MainScreen form design complete

This commit is contained in:
Chris Bell 2025-05-12 22:53:04 -05:00
parent b4d9e123dd
commit 3eb5529f78
2 changed files with 209 additions and 22 deletions

View File

@ -31,49 +31,233 @@ partial class MainScreen
/// </summary>
private void InitializeComponent()
{
panel1 = new System.Windows.Forms.Panel();
dataGridView1 = new System.Windows.Forms.DataGridView();
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();
productsSearchButton = new Button();
productsSearchTextBox = new TextBox();
productsLabel = new Label();
productsDataGridView = new DataGridView();
panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
((ISupportInitialize)partsDataGridView).BeginInit();
((ISupportInitialize)productsDataGridView).BeginInit();
SuspendLayout();
//
// panel1
//
panel1.AutoSize = true;
panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
panel1.Controls.Add(dataGridView1);
panel1.Dock = System.Windows.Forms.DockStyle.Fill;
panel1.Location = new System.Drawing.Point(0, 0);
panel1.Margin = new System.Windows.Forms.Padding(0);
panel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
panel1.Controls.Add(productsDeleteButton);
panel1.Controls.Add(productsModifyButton);
panel1.Controls.Add(productsAddButton);
panel1.Controls.Add(productsSearchButton);
panel1.Controls.Add(productsSearchTextBox);
panel1.Controls.Add(productsLabel);
panel1.Controls.Add(productsDataGridView);
panel1.Controls.Add(partsDeleteButton);
panel1.Controls.Add(partsModifyButton);
panel1.Controls.Add(partsAddButton);
panel1.Controls.Add(partsSearchButton);
panel1.Controls.Add(partsSearchTextBox);
panel1.Controls.Add(label2);
panel1.Controls.Add(mainScreenLabel);
panel1.Controls.Add(partsDataGridView);
panel1.Dock = DockStyle.Fill;
panel1.Location = new Point(0, 0);
panel1.Margin = new Padding(0);
panel1.Name = "panel1";
panel1.Size = new System.Drawing.Size(929, 450);
panel1.Size = new Size(929, 450);
panel1.TabIndex = 0;
//
// dataGridView1
// partsDataGridView
//
dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView1.Location = new System.Drawing.Point(10, 9);
dataGridView1.Name = "dataGridView1";
dataGridView1.Size = new System.Drawing.Size(467, 334);
dataGridView1.TabIndex = 0;
dataGridView1.Text = "dataGridView1";
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;
productsDeleteButton.Location = new Point(869, 289);
productsDeleteButton.Name = "productsDeleteButton";
productsDeleteButton.Size = new Size(48, 23);
productsDeleteButton.TabIndex = 15;
productsDeleteButton.Text = "Delete";
productsDeleteButton.UseVisualStyleBackColor = true;
//
// productsModifyButton
//
productsModifyButton.Anchor = AnchorStyles.Right;
productsModifyButton.Location = new Point(810, 289);
productsModifyButton.Name = "productsModifyButton";
productsModifyButton.Size = new Size(53, 23);
productsModifyButton.TabIndex = 14;
productsModifyButton.Text = "Modify";
productsModifyButton.UseVisualStyleBackColor = true;
//
// productsAddButton
//
productsAddButton.Anchor = AnchorStyles.Right;
productsAddButton.Location = new Point(762, 289);
productsAddButton.Name = "productsAddButton";
productsAddButton.Size = new Size(42, 23);
productsAddButton.TabIndex = 13;
productsAddButton.Text = "Add";
productsAddButton.UseVisualStyleBackColor = true;
//
// productsSearchButton
//
productsSearchButton.Anchor = AnchorStyles.Right;
productsSearchButton.Location = new Point(680, 75);
productsSearchButton.Name = "productsSearchButton";
productsSearchButton.Size = new Size(53, 23);
productsSearchButton.TabIndex = 12;
productsSearchButton.Text = "Search";
productsSearchButton.TextImageRelation = TextImageRelation.ImageAboveText;
productsSearchButton.UseVisualStyleBackColor = true;
//
// productsSearchTextBox
//
productsSearchTextBox.Anchor = AnchorStyles.Right;
productsSearchTextBox.Location = new Point(739, 75);
productsSearchTextBox.Name = "productsSearchTextBox";
productsSearchTextBox.Size = new Size(178, 23);
productsSearchTextBox.TabIndex = 11;
//
// productsLabel
//
productsLabel.Anchor = AnchorStyles.Right;
productsLabel.AutoSize = true;
productsLabel.Location = new Point(477, 83);
productsLabel.Name = "productsLabel";
productsLabel.Size = new Size(54, 15);
productsLabel.TabIndex = 10;
productsLabel.Text = "Products";
//
// productsDataGridView
//
productsDataGridView.Anchor = AnchorStyles.Right;
productsDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
productsDataGridView.Location = new Point(477, 112);
productsDataGridView.Name = "productsDataGridView";
productsDataGridView.Size = new Size(440, 162);
productsDataGridView.TabIndex = 9;
//
// MainScreen
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(929, 450);
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(929, 450);
Controls.Add(panel1);
MaximumSize = new Size(945, 489);
MinimumSize = new Size(945, 489);
Name = "MainScreen";
Text = "Main Screen";
panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
panel1.PerformLayout();
((ISupportInitialize)partsDataGridView).EndInit();
((ISupportInitialize)productsDataGridView).EndInit();
ResumeLayout(false);
PerformLayout();
}
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Panel panel1;
#endregion
private DataGridView partsDataGridView;
private Label mainScreenLabel;
private Button partsSearchButton;
private TextBox partsSearchTextBox;
private Label label2;
private Button partsModifyButton;
private Button partsAddButton;
private Button productsDeleteButton;
private Button productsModifyButton;
private Button productsAddButton;
private Button productsSearchButton;
private TextBox productsSearchTextBox;
private Label productsLabel;
private DataGridView productsDataGridView;
private Button partsDeleteButton;
}

View File

@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>