2024-11-13 23:20:06 +04:00
|
|
|
using GasStation.Repositories;
|
|
|
|
using GasStation.Repositories.Implementations;
|
|
|
|
using System.Drawing.Text;
|
|
|
|
using Unity;
|
|
|
|
|
|
|
|
namespace GasStation;
|
|
|
|
|
|
|
|
internal static class Program
|
2024-10-30 14:51:04 +04:00
|
|
|
{
|
2024-11-13 23:20:06 +04:00
|
|
|
/// <summary>
|
|
|
|
/// The main entry point for the application.
|
|
|
|
/// </summary>
|
|
|
|
[STAThread]
|
|
|
|
static void Main()
|
2024-10-30 14:51:04 +04:00
|
|
|
{
|
2024-11-13 23:20:06 +04:00
|
|
|
// To customize application configuration such as set high DPI settings or default font,
|
|
|
|
// see https://aka.ms/applicationconfiguration.
|
|
|
|
ApplicationConfiguration.Initialize();
|
|
|
|
Application.Run(CreateContainer().Resolve<FormGasStation>());
|
|
|
|
}
|
|
|
|
|
|
|
|
private static IUnityContainer CreateContainer()
|
|
|
|
{
|
|
|
|
var container = new UnityContainer();
|
|
|
|
|
|
|
|
container.RegisterType<IGasmanRepository, GasmanRepository>();
|
|
|
|
container.RegisterType<ISellingRepository,SellingRepository>();
|
|
|
|
container.RegisterType<ISupplierRepository, SupplierRepository>();
|
|
|
|
container.RegisterType<ISupplyRepository, SupplyRepository>();
|
|
|
|
|
|
|
|
return container;
|
2024-10-30 14:51:04 +04:00
|
|
|
}
|
|
|
|
}
|