using DatabaseCore; 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(); var securityManager = UnityContainerConfigurator.Resolve(); securityManager.CheckStartDataSource(); 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()); } } } }