исправил ошибки
This commit is contained in:
parent
bc2e607a5f
commit
357e9bb315
5
ProjectFlowerShop/FormFlower.Designer.cs
generated
5
ProjectFlowerShop/FormFlower.Designer.cs
generated
@ -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;
|
||||||
|
@ -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));
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user