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

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

View File

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

View File

@ -102,7 +102,6 @@
Controls.Add(labelComponent); Controls.Add(labelComponent);
Name = "FormFlowerComponent"; Name = "FormFlowerComponent";
Text = "Цветы-компоненты"; Text = "Цветы-компоненты";
Load += FormProductComponent_Load;
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); 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) private void buttonSave_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(textBoxNumber.Text)) if (string.IsNullOrEmpty(textBoxNumber.Text))