Готовая лабораторная работа 1

This commit is contained in:
nikbel2004@outlook.com 2024-02-26 10:30:01 +04:00
parent 5f2b668f98
commit 28fbc343b3
3 changed files with 28 additions and 28 deletions

View File

@ -34,12 +34,12 @@
buttonOrderReady = new Button(); buttonOrderReady = new Button();
buttonIssuedOrder = new Button(); buttonIssuedOrder = new Button();
buttonRefresh = new Button(); buttonRefresh = new Button();
menuStrip1 = new MenuStrip(); menuStrip = new MenuStrip();
toolStripMenuItem = new ToolStripMenuItem(); toolStripMenuItem = new ToolStripMenuItem();
workPieceToolStripMenuItem = new ToolStripMenuItem(); workPieceToolStripMenuItem = new ToolStripMenuItem();
furnitureToolStripMenuItem = new ToolStripMenuItem(); furnitureToolStripMenuItem = new ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
menuStrip1.SuspendLayout(); menuStrip.SuspendLayout();
SuspendLayout(); SuspendLayout();
// //
// dataGridView // dataGridView
@ -102,16 +102,16 @@
buttonRefresh.UseVisualStyleBackColor = true; buttonRefresh.UseVisualStyleBackColor = true;
buttonRefresh.Click += ButtonRef_Click; buttonRefresh.Click += ButtonRef_Click;
// //
// menuStrip1 // menuStrip
// //
menuStrip1.ImageScalingSize = new Size(20, 20); menuStrip.ImageScalingSize = new Size(20, 20);
menuStrip1.Items.AddRange(new ToolStripItem[] { toolStripMenuItem }); menuStrip.Items.AddRange(new ToolStripItem[] { toolStripMenuItem });
menuStrip1.Location = new Point(0, 0); menuStrip.Location = new Point(0, 0);
menuStrip1.Name = "menuStrip1"; menuStrip.Name = "menuStrip";
menuStrip1.Padding = new Padding(6, 3, 0, 3); menuStrip.Padding = new Padding(6, 3, 0, 3);
menuStrip1.Size = new Size(1297, 30); menuStrip.Size = new Size(1297, 30);
menuStrip1.TabIndex = 6; menuStrip.TabIndex = 6;
menuStrip1.Text = "menuStrip1"; menuStrip.Text = "menuStrip";
// //
// toolStripMenuItem // toolStripMenuItem
// //
@ -145,14 +145,14 @@
Controls.Add(buttonTakeOrderInWork); Controls.Add(buttonTakeOrderInWork);
Controls.Add(buttonCreateOrder); Controls.Add(buttonCreateOrder);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Controls.Add(menuStrip1); Controls.Add(menuStrip);
MainMenuStrip = menuStrip1; MainMenuStrip = menuStrip;
Name = "FormMain"; Name = "FormMain";
Text = "Сборка мебели"; Text = "Сборка мебели";
Load += FormMain_Load; Load += FormMain_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
menuStrip1.ResumeLayout(false); menuStrip.ResumeLayout(false);
menuStrip1.PerformLayout(); menuStrip.PerformLayout();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
@ -165,7 +165,7 @@
private Button buttonOrderReady; private Button buttonOrderReady;
private Button buttonIssuedOrder; private Button buttonIssuedOrder;
private Button buttonRefresh; private Button buttonRefresh;
private MenuStrip menuStrip1; private MenuStrip menuStrip;
private ToolStripMenuItem toolStripMenuItem; private ToolStripMenuItem toolStripMenuItem;
private ToolStripMenuItem workPieceToolStripMenuItem; private ToolStripMenuItem workPieceToolStripMenuItem;
private ToolStripMenuItem furnitureToolStripMenuItem; private ToolStripMenuItem furnitureToolStripMenuItem;

View File

@ -31,7 +31,7 @@
buttonAdd = new Button(); buttonAdd = new Button();
buttonUpdate = new Button(); buttonUpdate = new Button();
buttonDelete = new Button(); buttonDelete = new Button();
buttonRef = new Button(); buttonRefresh = new Button();
dataGridView = new DataGridView(); dataGridView = new DataGridView();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout(); SuspendLayout();
@ -66,15 +66,15 @@
buttonDelete.UseVisualStyleBackColor = true; buttonDelete.UseVisualStyleBackColor = true;
buttonDelete.Click += ButtonDelete_Click; buttonDelete.Click += ButtonDelete_Click;
// //
// buttonRef // buttonRefresh
// //
buttonRef.Location = new Point(641, 239); buttonRefresh.Location = new Point(641, 239);
buttonRef.Name = "buttonRef"; buttonRefresh.Name = "buttonRefresh";
buttonRef.Size = new Size(116, 47); buttonRefresh.Size = new Size(116, 47);
buttonRef.TabIndex = 3; buttonRefresh.TabIndex = 3;
buttonRef.Text = "Обновить"; buttonRefresh.Text = "Обновить";
buttonRef.UseVisualStyleBackColor = true; buttonRefresh.UseVisualStyleBackColor = true;
buttonRef.Click += ButtonRef_Click; buttonRefresh.Click += ButtonRefresh_Click;
// //
// dataGridView // dataGridView
// //
@ -92,7 +92,7 @@
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(781, 450); ClientSize = new Size(781, 450);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Controls.Add(buttonRef); Controls.Add(buttonRefresh);
Controls.Add(buttonDelete); Controls.Add(buttonDelete);
Controls.Add(buttonUpdate); Controls.Add(buttonUpdate);
Controls.Add(buttonAdd); Controls.Add(buttonAdd);
@ -108,7 +108,7 @@
private Button buttonAdd; private Button buttonAdd;
private Button buttonUpdate; private Button buttonUpdate;
private Button buttonDelete; private Button buttonDelete;
private Button buttonRef; private Button buttonRefresh;
private DataGridView dataGridView; private DataGridView dataGridView;
} }
} }

View File

@ -120,7 +120,7 @@ namespace FurnitureAssemblyView
} }
} }
private void ButtonRef_Click(object sender, EventArgs e) private void ButtonRefresh_Click(object sender, EventArgs e)
{ {
LoadData(); LoadData();
} }