Фиксы

This commit is contained in:
dasha 2023-01-31 18:07:09 +04:00
parent 6b93115ff3
commit 0c05166def
3 changed files with 5 additions and 6 deletions

View File

@ -45,7 +45,7 @@
this.buttonCancel.TabIndex = 11;
this.buttonCancel.Text = "Отмена";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
//
// buttonSave
//
@ -56,7 +56,7 @@
this.buttonSave.TabIndex = 10;
this.buttonSave.Text = "Сохранить";
this.buttonSave.UseVisualStyleBackColor = true;
this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
this.buttonSave.Click += new System.EventHandler(this.ButtonSave_Click);
//
// textBoxCost
//

View File

@ -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))
{
@ -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;
Close();

View File

@ -90,8 +90,7 @@ namespace SushiBarBusinessLogic.BusinessLogics
}
if (string.IsNullOrEmpty(model.IngredientName))
{
throw new ArgumentNullException("Нет названия ингредиента",
nameof(model.IngredientName));
throw new ArgumentNullException("Нет названия ингредиента", nameof(model.IngredientName));
}
if (model.Cost <= 0)
{