diff --git a/Confectionery/ConfectioneryView/FormSupply.Designer.cs b/Confectionery/ConfectioneryView/FormSupply.Designer.cs index 040d631..e8c598d 100644 --- a/Confectionery/ConfectioneryView/FormSupply.Designer.cs +++ b/Confectionery/ConfectioneryView/FormSupply.Designer.cs @@ -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(); diff --git a/Confectionery/ConfectioneryView/FormSupply.cs b/Confectionery/ConfectioneryView/FormSupply.cs index 912a410..ad01fbb 100644 --- a/Confectionery/ConfectioneryView/FormSupply.cs +++ b/Confectionery/ConfectioneryView/FormSupply.cs @@ -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");