вроде готовая лаба 1 хард

This commit is contained in:
Полина Чубыкина 2024-03-26 19:58:34 +04:00
parent b00e00ba91
commit 23ef6fc7a0
2 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,7 @@
this.buttonCancel.TabIndex = 19;
this.buttonCancel.Text = "Отмена";
this.buttonCancel.UseVisualStyleBackColor = true;
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
//
// buttonSave
//
@ -57,6 +58,7 @@
this.buttonSave.TabIndex = 18;
this.buttonSave.Text = "Сохранить";
this.buttonSave.UseVisualStyleBackColor = true;
this.buttonSave.Click += new System.EventHandler(this.ButtonSave_Click);
//
// textBoxCount
//
@ -131,6 +133,7 @@
this.Controls.Add(this.labelShop);
this.Name = "FormSupply";
this.Text = "Пополнение магазина";
this.Load += new System.EventHandler(this.FormSupply_Load);
this.ResumeLayout(false);
this.PerformLayout();

View File

@ -30,7 +30,7 @@ namespace ConfectioneryView
private void FormSupply_Load(object sender, EventArgs e)
{
_logger.LogInformation("Ice creams loading");
_logger.LogInformation("Pastries loading");
try
{
var list = _logicPastry.ReadList(null);
@ -44,7 +44,7 @@ namespace ConfectioneryView
}
catch (Exception ex)
{
_logger.LogError(ex, "Ice creams loading error");
_logger.LogError(ex, "Pastries loading error");
MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
_logger.LogInformation("Shops loading");