From 0c05166def7928564d9e112f9eccef9cd6dc65a2 Mon Sep 17 00:00:00 2001 From: dasha Date: Tue, 31 Jan 2023 18:07:09 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SushiBar/SushiBar/FormIngredient.Designer.cs | 4 ++-- SushiBar/SushiBar/FormIngredient.cs | 4 ++-- .../SushiBarBusinessLogic/BusinessLogics/IngredientLogic.cs | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/SushiBar/SushiBar/FormIngredient.Designer.cs b/SushiBar/SushiBar/FormIngredient.Designer.cs index 4ae8e9f..038f5ca 100644 --- a/SushiBar/SushiBar/FormIngredient.Designer.cs +++ b/SushiBar/SushiBar/FormIngredient.Designer.cs @@ -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 // diff --git a/SushiBar/SushiBar/FormIngredient.cs b/SushiBar/SushiBar/FormIngredient.cs index 775ea56..3349363 100644 --- a/SushiBar/SushiBar/FormIngredient.cs +++ b/SushiBar/SushiBar/FormIngredient.cs @@ -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(); diff --git a/SushiBar/SushiBarBusinessLogic/BusinessLogics/IngredientLogic.cs b/SushiBar/SushiBarBusinessLogic/BusinessLogics/IngredientLogic.cs index d7dce4c..5b93cb8 100644 --- a/SushiBar/SushiBarBusinessLogic/BusinessLogics/IngredientLogic.cs +++ b/SushiBar/SushiBarBusinessLogic/BusinessLogics/IngredientLogic.cs @@ -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) {