ипсравил ошибки

This commit is contained in:
antoc0der 2024-03-12 09:31:03 +04:00
parent 93054ac4a5
commit 8d10707d69
5 changed files with 7 additions and 16 deletions

View File

@ -208,7 +208,6 @@
Controls.Add(textBoxName);
Controls.Add(labelPrice);
Controls.Add(labelName);
// Name = "FormProduct";
Text = "Изделие";
Load += FormProduct_Load;
groupBoxComponent.ResumeLayout(false);
@ -231,10 +230,8 @@
private DataGridView dataGridView;
private Button Save;
private Button buttonCancel;
// private DataGridViewTextBoxColumn Id;
private DataGridViewTextBoxColumn Name;
private DataGridViewTextBoxColumn Number;
//private DataGridViewTextBoxColumn Id;
private DataGridViewTextBoxColumn Component;
private DataGridViewTextBoxColumn idd;
private DataGridViewTextBoxColumn Numbers;

View File

@ -89,7 +89,7 @@
buttonCancel.UseVisualStyleBackColor = true;
buttonCancel.Click += buttonCancel_Click;
//
// FormProductComponent
// FormFlowerComponent
//
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
@ -100,9 +100,8 @@
Controls.Add(comboBoxComponent);
Controls.Add(labelNumber);
Controls.Add(labelComponent);
Name = "FormProductComponent";
Text = "FormProductComponent";
Load += FormProductComponent_Load;
Name = "FormFlowerComponent";
Text = "Цветок-компонент";
ResumeLayout(false);
PerformLayout();
}

View File

@ -65,11 +65,6 @@ namespace ProjectFlowerShop
}
}
private void FormProductComponent_Load(object sender, EventArgs e)
{
}
private void buttonSave_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(textBoxNumber.Text))

View File

@ -96,7 +96,7 @@
Controls.Add(AddButton);
Controls.Add(DataGridView);
Name = "FormFlowers";
Text = "FlowersForm";
Text = "Форма цветов";
Load += IceCreamsForm_Load;
((System.ComponentModel.ISupportInitialize)DataGridView).EndInit();
ResumeLayout(false);

View File

@ -62,14 +62,14 @@
// КомпонентыStripMenuItem
//
КомпонентыStripMenuItem.Name = "КомпонентыStripMenuItem";
КомпонентыStripMenuItem.Size = new Size(224, 26);
КомпонентыStripMenuItem.Size = new Size(182, 26);
КомпонентыStripMenuItem.Text = "Компоненты";
КомпонентыStripMenuItem.Click += КомпонентыStripMenuItem_Click;
//
// ЦветыStripMenuItem
//
ЦветыStripMenuItem.Name = "ЦветыStripMenuItem";
ЦветыStripMenuItem.Size = new Size(224, 26);
ЦветыStripMenuItem.Size = new Size(182, 26);
ЦветыStripMenuItem.Text = "Цветы";
ЦветыStripMenuItem.Click += ЦветыStripMenuItem_Click;
//
@ -146,7 +146,7 @@
Controls.Add(menuStrip1);
MainMenuStrip = menuStrip1;
Name = "MainForm";
Text = "MainForm";
Text = "Главная форма";
Load += MainForm_Load;
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();