Проект готов.

This commit is contained in:
Андрей Байгулов 2024-05-07 21:14:39 +04:00
parent 3f9ba17003
commit 51230648ff
2 changed files with 48 additions and 43 deletions

View File

@ -53,6 +53,7 @@
buttonSave.TabIndex = 1; buttonSave.TabIndex = 1;
buttonSave.Text = "Сохранить"; buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true; buttonSave.UseVisualStyleBackColor = true;
buttonSave.Click += this.ButtonSave_Click;
// //
// textBoxName // textBoxName
// //
@ -63,7 +64,7 @@
// //
// textBoxCost // textBoxCost
// //
textBoxCost.Location = new Point(89, 80); textBoxCost.Location = new Point(89, 59);
textBoxCost.Name = "textBoxCost"; textBoxCost.Name = "textBoxCost";
textBoxCost.Size = new Size(218, 23); textBoxCost.Size = new Size(218, 23);
textBoxCost.TabIndex = 3; textBoxCost.TabIndex = 3;
@ -80,7 +81,7 @@
// labelCost // labelCost
// //
labelCost.AutoSize = true; labelCost.AutoSize = true;
labelCost.Location = new Point(12, 80); labelCost.Location = new Point(12, 62);
labelCost.Name = "labelCost"; labelCost.Name = "labelCost";
labelCost.Size = new Size(38, 15); labelCost.Size = new Size(38, 15);
labelCost.TabIndex = 5; labelCost.TabIndex = 5;

View File

@ -28,49 +28,53 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
button1 = new Button(); ButtonAdd = new Button();
button2 = new Button(); ButtonUpd = new Button();
button3 = new Button(); ButtonDel = new Button();
button4 = new Button(); ButtonRef = new Button();
dataGridView = new DataGridView(); dataGridView = new DataGridView();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// button1 // ButtonAdd
// //
button1.Location = new Point(430, 24); ButtonAdd.Location = new Point(430, 24);
button1.Name = "button1"; ButtonAdd.Name = "ButtonAdd";
button1.Size = new Size(109, 68); ButtonAdd.Size = new Size(109, 68);
button1.TabIndex = 0; ButtonAdd.TabIndex = 0;
button1.Text = "button1"; ButtonAdd.Text = "Добавить";
button1.UseVisualStyleBackColor = true; ButtonAdd.UseVisualStyleBackColor = true;
ButtonAdd.Click += ButtonAdd_Click;
// //
// button2 // ButtonUpd
// //
button2.Location = new Point(430, 98); ButtonUpd.Location = new Point(430, 98);
button2.Name = "button2"; ButtonUpd.Name = "ButtonUpd";
button2.Size = new Size(109, 68); ButtonUpd.Size = new Size(109, 68);
button2.TabIndex = 1; ButtonUpd.TabIndex = 1;
button2.Text = "button2"; ButtonUpd.Text = "Изменить";
button2.UseVisualStyleBackColor = true; ButtonUpd.UseVisualStyleBackColor = true;
ButtonUpd.Click += ButtonUpd_Click;
// //
// button3 // ButtonDel
// //
button3.Location = new Point(430, 172); ButtonDel.Location = new Point(430, 172);
button3.Name = "button3"; ButtonDel.Name = "ButtonDel";
button3.Size = new Size(109, 68); ButtonDel.Size = new Size(109, 68);
button3.TabIndex = 2; ButtonDel.TabIndex = 2;
button3.Text = "button3"; ButtonDel.Text = "Удалить";
button3.UseVisualStyleBackColor = true; ButtonDel.UseVisualStyleBackColor = true;
ButtonDel.Click += ButtonDel_Click;
// //
// button4 // ButtonRef
// //
button4.Location = new Point(430, 246); ButtonRef.Location = new Point(430, 246);
button4.Name = "button4"; ButtonRef.Name = "ButtonRef";
button4.Size = new Size(109, 68); ButtonRef.Size = new Size(109, 68);
button4.TabIndex = 3; ButtonRef.TabIndex = 3;
button4.Text = "button4"; ButtonRef.Text = "Обновить";
button4.UseVisualStyleBackColor = true; ButtonRef.UseVisualStyleBackColor = true;
ButtonRef.Click += ButtonRef_Click;
// //
// dataGridView // dataGridView
// //
@ -86,12 +90,12 @@
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(551, 450); ClientSize = new Size(551, 450);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Controls.Add(button4); Controls.Add(ButtonRef);
Controls.Add(button3); Controls.Add(ButtonDel);
Controls.Add(button2); Controls.Add(ButtonUpd);
Controls.Add(button1); Controls.Add(ButtonAdd);
Name = "FormComponents"; Name = "FormComponents";
Text = "FormComponents"; Text = "Компоненты";
Load += FormComponents_Load; Load += FormComponents_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false); ResumeLayout(false);
@ -99,10 +103,10 @@
#endregion #endregion
private Button button1; private Button ButtonAdd;
private Button button2; private Button ButtonUpd;
private Button button3; private Button ButtonDel;
private Button button4; private Button ButtonRef;
private DataGridView dataGridView; private DataGridView dataGridView;
} }
} }