diff --git a/ProjectFlowerShop/FormFlower.Designer.cs b/ProjectFlowerShop/FormFlower.Designer.cs index 1d8f653..aa3790a 100644 --- a/ProjectFlowerShop/FormFlower.Designer.cs +++ b/ProjectFlowerShop/FormFlower.Designer.cs @@ -1,6 +1,6 @@ namespace ProjectFlowerShop { - partial class FormProduct + partial class FormFlower { /// /// Required designer variable. diff --git a/ProjectFlowerShop/FormFlower.cs b/ProjectFlowerShop/FormFlower.cs index 3350e4a..40ad362 100644 --- a/ProjectFlowerShop/FormFlower.cs +++ b/ProjectFlowerShop/FormFlower.cs @@ -15,7 +15,7 @@ using System.Windows.Forms; namespace ProjectFlowerShop { - public partial class FormProduct : Form + public partial class FormFlower : Form { private readonly ILogger _logger; private readonly IFlowerLogic _logic; @@ -23,7 +23,7 @@ namespace ProjectFlowerShop private Dictionary _flowerComponents; public int Id { set { _id = value; } } - public FormProduct(ILogger logger, IFlowerLogic logic) + public FormFlower(ILogger logger, IFlowerLogic logic) { InitializeComponent(); _logger = logger; diff --git a/ProjectFlowerShop/FormFlowers.cs b/ProjectFlowerShop/FormFlowers.cs index 5d5b18c..49c1b87 100644 --- a/ProjectFlowerShop/FormFlowers.cs +++ b/ProjectFlowerShop/FormFlowers.cs @@ -53,8 +53,8 @@ namespace ProjectFlowerShop private void AddButton_Click(object sender, EventArgs e) { - var service = Program.ServiceProvider?.GetService(typeof(FormProduct)); - if (service is FormProduct form) + var service = Program.ServiceProvider?.GetService(typeof(FormFlower)); + if (service is FormFlower form) { if (form.ShowDialog() == DialogResult.OK) { @@ -67,8 +67,8 @@ namespace ProjectFlowerShop { if (DataGridView.SelectedRows.Count == 1) { - var service = Program.ServiceProvider?.GetService(typeof(FormProduct)); - if (service is FormProduct form) + var service = Program.ServiceProvider?.GetService(typeof(FormFlower)); + if (service is FormFlower form) { var tmp = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["Id"].Value); form.Id = Convert.ToInt32(DataGridView.SelectedRows[0].Cells["Id"].Value); diff --git a/ProjectFlowerShop/Program.cs b/ProjectFlowerShop/Program.cs index d423dcb..a26c173 100644 --- a/ProjectFlowerShop/Program.cs +++ b/ProjectFlowerShop/Program.cs @@ -44,8 +44,8 @@ namespace ProjectFlowerShop services.AddTransient(); services.AddTransient(); services.AddTransient(); - services.AddTransient(); - services.AddTransient(); + services.AddTransient(); + services.AddTransient(); services.AddTransient(); }