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

This commit is contained in:
antoc0der 2024-03-15 22:23:58 +04:00
parent bc2e607a5f
commit 357e9bb315
4 changed files with 0 additions and 21 deletions

View File

@ -72,7 +72,6 @@
textBoxName.Name = "textBoxName";
textBoxName.Size = new Size(204, 27);
textBoxName.TabIndex = 2;
textBoxName.TextChanged += textBox1_TextChanged;
//
// textBoxPrice
//
@ -145,7 +144,6 @@
dataGridView.RowTemplate.Height = 29;
dataGridView.Size = new Size(432, 262);
dataGridView.TabIndex = 0;
dataGridView.CellContentClick += dataGridView_CellContentClick;
//
// Save
//
@ -208,7 +206,6 @@
Controls.Add(textBoxName);
Controls.Add(labelPrice);
Controls.Add(labelName);
// Name = "FormProduct";
Text = "Изделие";
Load += FormProduct_Load;
groupBoxComponent.ResumeLayout(false);
@ -231,10 +228,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

@ -31,11 +31,6 @@ namespace ProjectFlowerShop
_flowerComponents = new Dictionary<int, (IComponentModel, int)>();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void FormProduct_Load(object sender, EventArgs e)
{
if (_id.HasValue)
@ -88,11 +83,6 @@ namespace ProjectFlowerShop
}
}
private void dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void buttonAdd_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormFlowerComponent));

View File

@ -102,7 +102,6 @@
Controls.Add(labelComponent);
Name = "FormFlowerComponent";
Text = "Цветы-компоненты";
Load += FormProductComponent_Load;
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))