quick fixes in FormShop

This commit is contained in:
PIbd-13_Valiullin 2024-02-20 12:41:10 +04:00
parent 6d70c6edc7
commit ddca260756
2 changed files with 8 additions and 1 deletions

View File

@ -148,6 +148,7 @@
this.buttonSave.TabIndex = 28; this.buttonSave.TabIndex = 28;
this.buttonSave.Text = "Сохранить"; this.buttonSave.Text = "Сохранить";
this.buttonSave.UseVisualStyleBackColor = true; this.buttonSave.UseVisualStyleBackColor = true;
this.buttonSave.Click += ButtonSave_Click;
// //
// buttonCancel // buttonCancel
// //
@ -158,6 +159,7 @@
this.buttonCancel.TabIndex = 27; this.buttonCancel.TabIndex = 27;
this.buttonCancel.Text = "Отмена"; this.buttonCancel.Text = "Отмена";
this.buttonCancel.UseVisualStyleBackColor = true; this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += ButtonCancel_Click;
// //
// FormShop // FormShop
// //
@ -182,6 +184,11 @@
} }
private void ButtonCancel_Click1(object sender, EventArgs e)
{
throw new NotImplementedException();
}
#endregion #endregion
private DateTimePicker dateTimePicker; private DateTimePicker dateTimePicker;

View File

@ -88,7 +88,7 @@ namespace ComputersShopView
} }
if (string.IsNullOrEmpty(textBoxAddress.Text)) if (string.IsNullOrEmpty(textBoxAddress.Text))
{ {
MessageBox.Show("Заполните цену", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show("Заполните адрес", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
return; return;
} }
_logger.LogInformation("Сохранение магазина"); _logger.LogInformation("Сохранение магазина");