in c# we trust

This commit is contained in:
antoc0der 2024-02-08 16:34:56 +03:00
parent c0cd5e4da8
commit c98deeb93a
6 changed files with 62 additions and 41 deletions

View File

@ -1,6 +1,6 @@
namespace ProjectFlowerShop
{
partial class Form1
partial class ComponentForm
{
/// <summary>
/// Required designer variable.
@ -28,10 +28,10 @@
/// </summary>
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

View File

@ -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<ComponentForm> logger, IComponentLogic logic)
{
InitializeComponent();
_logger = logger;
_logic = logic;
}
}
}

View File

@ -1,10 +0,0 @@
namespace ProjectFlowerShop
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}

View File

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

View File

@ -12,4 +12,11 @@
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\FlowerShopBusinessLogic\FlowerShopBusinessLogic.csproj" />
<ProjectReference Include="..\FlowerShopContracts\FlowerShopContracts.csproj" />
<ProjectReference Include="..\FlowerShopDataModels\FlowerShopDataModels.csproj" />
<ProjectReference Include="..\FlowerShopListImplement\FlowerShopListImplement.csproj" />
</ItemGroup>
</Project>