Название формы поменено.

This commit is contained in:
dasha 2023-02-14 11:25:23 +04:00
parent a4a2c34044
commit 2b8ef3fac0
5 changed files with 8 additions and 8 deletions

View File

@ -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();
}

View File

@ -1,6 +1,6 @@
namespace SushiBarView
{
partial class FormAddSushiInShop
partial class FormShopSushi
{
/// <summary>
/// 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);

View File

@ -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<ShopViewModel>? _listShops;
private readonly List<SushiViewModel>? _listSushi;
public FormAddSushiInShop(ILogger<FormAddSushiInShop> logger, IShopLogic shopLogic, ISushiLogic sushiLogic)
public FormShopSushi(ILogger<FormShopSushi> logger, IShopLogic shopLogic, ISushiLogic sushiLogic)
{
InitializeComponent();
_shopLogic = shopLogic;

View File

@ -52,7 +52,7 @@ namespace SushiBarView
services.AddTransient<FormSushi>();
services.AddTransient<FormSushiIngredients>();
services.AddTransient<FormListSushi>();
services.AddTransient<FormAddSushiInShop>();
services.AddTransient<FormShopSushi>();
services.AddTransient<FormShops>();
services.AddTransient<FormShop>();
}