From 2b8ef3fac07404b30faed5b4ebbb4d54e7a2d5b8 Mon Sep 17 00:00:00 2001 From: dasha Date: Tue, 14 Feb 2023 11:25:23 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=84=D0=BE=D1=80=D0=BC=D1=8B=20=D0=BF=D0=BE=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D0=BD=D0=BE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SushiBar/SushiBar/FormMain.cs | 4 ++-- ...AddSushiInShop.Designer.cs => FormShopSushi.Designer.cs} | 6 +++--- .../SushiBar/{FormAddSushiInShop.cs => FormShopSushi.cs} | 4 ++-- .../{FormAddSushiInShop.resx => FormShopSushi.resx} | 0 SushiBar/SushiBar/Program.cs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename SushiBar/SushiBar/{FormAddSushiInShop.Designer.cs => FormShopSushi.Designer.cs} (98%) rename SushiBar/SushiBar/{FormAddSushiInShop.cs => FormShopSushi.cs} (95%) rename SushiBar/SushiBar/{FormAddSushiInShop.resx => FormShopSushi.resx} (100%) diff --git a/SushiBar/SushiBar/FormMain.cs b/SushiBar/SushiBar/FormMain.cs index d79cbd6..3fcbfa0 100644 --- a/SushiBar/SushiBar/FormMain.cs +++ b/SushiBar/SushiBar/FormMain.cs @@ -169,8 +169,8 @@ namespace SushiBarView private void ButtonAddSushiInShop_Click(object sender, EventArgs e) { - var service = Program.ServiceProvider?.GetService(typeof(FormAddSushiInShop)); - if (service is FormAddSushiInShop form) + var service = Program.ServiceProvider?.GetService(typeof(FormShopSushi)); + if (service is FormShopSushi form) { form.ShowDialog(); } diff --git a/SushiBar/SushiBar/FormAddSushiInShop.Designer.cs b/SushiBar/SushiBar/FormShopSushi.Designer.cs similarity index 98% rename from SushiBar/SushiBar/FormAddSushiInShop.Designer.cs rename to SushiBar/SushiBar/FormShopSushi.Designer.cs index 89627cc..799a9ce 100644 --- a/SushiBar/SushiBar/FormAddSushiInShop.Designer.cs +++ b/SushiBar/SushiBar/FormShopSushi.Designer.cs @@ -1,6 +1,6 @@ namespace SushiBarView { - partial class FormAddSushiInShop + partial class FormShopSushi { /// /// Required designer variable. @@ -116,7 +116,7 @@ this.buttonSave.UseVisualStyleBackColor = true; this.buttonSave.Click += new System.EventHandler(this.ButtonSave_Click); // - // FormAddSushiInShop + // FormShopSushi // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -129,7 +129,7 @@ this.Controls.Add(this.labelSushi); this.Controls.Add(this.comboBoxShop); this.Controls.Add(this.labelShop); - this.Name = "FormAddSushiInShop"; + this.Name = "FormShopSushi"; this.Text = "Поступление суши в суши-бар"; ((System.ComponentModel.ISupportInitialize)(this.numericUpDownCount)).EndInit(); this.ResumeLayout(false); diff --git a/SushiBar/SushiBar/FormAddSushiInShop.cs b/SushiBar/SushiBar/FormShopSushi.cs similarity index 95% rename from SushiBar/SushiBar/FormAddSushiInShop.cs rename to SushiBar/SushiBar/FormShopSushi.cs index 32ce4c7..5e32359 100644 --- a/SushiBar/SushiBar/FormAddSushiInShop.cs +++ b/SushiBar/SushiBar/FormShopSushi.cs @@ -4,7 +4,7 @@ using SushiBarContracts.ViewModels; namespace SushiBarView { - public partial class FormAddSushiInShop : Form + public partial class FormShopSushi : Form { private readonly ILogger _logger; private readonly IShopLogic _shopLogic; @@ -12,7 +12,7 @@ namespace SushiBarView private readonly List? _listShops; private readonly List? _listSushi; - public FormAddSushiInShop(ILogger logger, IShopLogic shopLogic, ISushiLogic sushiLogic) + public FormShopSushi(ILogger logger, IShopLogic shopLogic, ISushiLogic sushiLogic) { InitializeComponent(); _shopLogic = shopLogic; diff --git a/SushiBar/SushiBar/FormAddSushiInShop.resx b/SushiBar/SushiBar/FormShopSushi.resx similarity index 100% rename from SushiBar/SushiBar/FormAddSushiInShop.resx rename to SushiBar/SushiBar/FormShopSushi.resx diff --git a/SushiBar/SushiBar/Program.cs b/SushiBar/SushiBar/Program.cs index 8615648..190fe12 100644 --- a/SushiBar/SushiBar/Program.cs +++ b/SushiBar/SushiBar/Program.cs @@ -52,7 +52,7 @@ namespace SushiBarView services.AddTransient(); services.AddTransient(); services.AddTransient(); - services.AddTransient(); + services.AddTransient(); services.AddTransient(); services.AddTransient(); }