diff --git a/ComputersShop/ComputersShopView/FormShop.Designer.cs b/ComputersShop/ComputersShopView/FormShop.Designer.cs index 7ded334..ac4e4e6 100644 --- a/ComputersShop/ComputersShopView/FormShop.Designer.cs +++ b/ComputersShop/ComputersShopView/FormShop.Designer.cs @@ -148,6 +148,7 @@ this.buttonSave.TabIndex = 28; this.buttonSave.Text = "Сохранить"; this.buttonSave.UseVisualStyleBackColor = true; + this.buttonSave.Click += ButtonSave_Click; // // buttonCancel // @@ -158,6 +159,7 @@ this.buttonCancel.TabIndex = 27; this.buttonCancel.Text = "Отмена"; this.buttonCancel.UseVisualStyleBackColor = true; + this.buttonCancel.Click += ButtonCancel_Click; // // FormShop // @@ -182,6 +184,11 @@ } + private void ButtonCancel_Click1(object sender, EventArgs e) + { + throw new NotImplementedException(); + } + #endregion private DateTimePicker dateTimePicker; diff --git a/ComputersShop/ComputersShopView/FormShop.cs b/ComputersShop/ComputersShopView/FormShop.cs index 6a1fda4..305f2ac 100644 --- a/ComputersShop/ComputersShopView/FormShop.cs +++ b/ComputersShop/ComputersShopView/FormShop.cs @@ -88,7 +88,7 @@ namespace ComputersShopView } if (string.IsNullOrEmpty(textBoxAddress.Text)) { - MessageBox.Show("Заполните цену", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); + MessageBox.Show("Заполните адрес", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } _logger.LogInformation("Сохранение магазина");