using DatabaseCore;
using DesktopTools.Controls;
using ModelTools.BusinessLogics;
using ModelTools.Interfaces;
using SecurityBusinessLogic.BusinessLogics;
using System;
using System.Windows.Forms;
namespace DepartmentPortalDesctop
{
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
UnityContainerConfigurator.PublishService();
UnityContainerConfigurator.InitServices();
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var form = new FormEnter();
if (form.ShowDialog() == DialogResult.OK && UserManager.GetInstance.IsAuth)
{
Application.Run(UnityContainerConfigurator.Resolve());
}
}
}
}