diff --git a/ProjectFlowerShop/Form1.Designer.cs b/ProjectFlowerShop/ComponentForm.Designer.cs similarity index 77% rename from ProjectFlowerShop/Form1.Designer.cs rename to ProjectFlowerShop/ComponentForm.Designer.cs index 5fd6fda..fa8fe19 100644 --- a/ProjectFlowerShop/Form1.Designer.cs +++ b/ProjectFlowerShop/ComponentForm.Designer.cs @@ -1,6 +1,6 @@ namespace ProjectFlowerShop { - partial class Form1 + partial class ComponentForm { /// /// Required designer variable. @@ -28,10 +28,10 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; + components = new System.ComponentModel.Container(); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(800, 450); + Text = "Form1"; } #endregion diff --git a/ProjectFlowerShop/ComponentForm.cs b/ProjectFlowerShop/ComponentForm.cs new file mode 100644 index 0000000..f7ae647 --- /dev/null +++ b/ProjectFlowerShop/ComponentForm.cs @@ -0,0 +1,24 @@ +using Microsoft.Extensions.Logging; +using FlowerShopContracts.BusinessLogicsContracts; +using Microsoft.VisualBasic.Logging; +using FlowerShopContracts.SearchModels; +using System.Windows.Forms; + +namespace ProjectFlowerShop +{ + public partial class ComponentForm : Form + { + private readonly ILogger _logger; + private readonly IComponentLogic _logic; + private int? _id; + public int Id { set { _id = value; } } + public ComponentForm(ILogger logger, IComponentLogic logic) + { + InitializeComponent(); + _logger = logger; + _logic = logic; + } + + + } +} \ No newline at end of file diff --git a/ProjectFlowerShop/Form1.resx b/ProjectFlowerShop/ComponentForm.resx similarity index 93% rename from ProjectFlowerShop/Form1.resx rename to ProjectFlowerShop/ComponentForm.resx index 1af7de1..af32865 100644 --- a/ProjectFlowerShop/Form1.resx +++ b/ProjectFlowerShop/ComponentForm.resx @@ -1,17 +1,17 @@  - diff --git a/ProjectFlowerShop/Form1.cs b/ProjectFlowerShop/Form1.cs deleted file mode 100644 index 7519cb8..0000000 --- a/ProjectFlowerShop/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectFlowerShop -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/ProjectFlowerShop/Program.cs b/ProjectFlowerShop/Program.cs index 24357fe..b26be2c 100644 --- a/ProjectFlowerShop/Program.cs +++ b/ProjectFlowerShop/Program.cs @@ -11,7 +11,7 @@ namespace ProjectFlowerShop // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); - Application.Run(new Form1()); + Application.Run(new ComponentForm()); } } } \ No newline at end of file diff --git a/ProjectFlowerShop/ProjectFlowerShop.csproj b/ProjectFlowerShop/ProjectFlowerShop.csproj index d47a4bd..cb55f75 100644 --- a/ProjectFlowerShop/ProjectFlowerShop.csproj +++ b/ProjectFlowerShop/ProjectFlowerShop.csproj @@ -12,4 +12,11 @@ + + + + + + + \ No newline at end of file