Фиксы
This commit is contained in:
parent
6b93115ff3
commit
0c05166def
4
SushiBar/SushiBar/FormIngredient.Designer.cs
generated
4
SushiBar/SushiBar/FormIngredient.Designer.cs
generated
@ -45,7 +45,7 @@
|
|||||||
this.buttonCancel.TabIndex = 11;
|
this.buttonCancel.TabIndex = 11;
|
||||||
this.buttonCancel.Text = "Отмена";
|
this.buttonCancel.Text = "Отмена";
|
||||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||||
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
|
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
|
||||||
//
|
//
|
||||||
// buttonSave
|
// buttonSave
|
||||||
//
|
//
|
||||||
@ -56,7 +56,7 @@
|
|||||||
this.buttonSave.TabIndex = 10;
|
this.buttonSave.TabIndex = 10;
|
||||||
this.buttonSave.Text = "Сохранить";
|
this.buttonSave.Text = "Сохранить";
|
||||||
this.buttonSave.UseVisualStyleBackColor = true;
|
this.buttonSave.UseVisualStyleBackColor = true;
|
||||||
this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
|
this.buttonSave.Click += new System.EventHandler(this.ButtonSave_Click);
|
||||||
//
|
//
|
||||||
// textBoxCost
|
// textBoxCost
|
||||||
//
|
//
|
||||||
|
@ -45,7 +45,7 @@ namespace SushiBarView
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonSave_Click(object sender, EventArgs e)
|
private void ButtonSave_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(textBoxName.Text))
|
if (string.IsNullOrEmpty(textBoxName.Text))
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@ namespace SushiBarView
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonCancel_Click(object sender, EventArgs e)
|
private void ButtonCancel_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
DialogResult = DialogResult.Cancel;
|
DialogResult = DialogResult.Cancel;
|
||||||
Close();
|
Close();
|
||||||
|
@ -90,8 +90,7 @@ namespace SushiBarBusinessLogic.BusinessLogics
|
|||||||
}
|
}
|
||||||
if (string.IsNullOrEmpty(model.IngredientName))
|
if (string.IsNullOrEmpty(model.IngredientName))
|
||||||
{
|
{
|
||||||
throw new ArgumentNullException("Нет названия ингредиента",
|
throw new ArgumentNullException("Нет названия ингредиента", nameof(model.IngredientName));
|
||||||
nameof(model.IngredientName));
|
|
||||||
}
|
}
|
||||||
if (model.Cost <= 0)
|
if (model.Cost <= 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user