using DatabaseCore;
using ModuleTools.BusinessLogics;
using ModuleTools.Interfaces;
using System;
using System.Windows.Forms;
namespace DepartmentPortalDesctop
{
static class Program
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main()
{
DependencyManager.Instance.RegisterType();
DependencyManager.InitDependency();
var securityManager = DependencyManager.Instance.Resolve();
securityManager.CheckStartDataSource();
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
var form = new FormEnter();
if (form.ShowDialog() == DialogResult.OK && securityManager.IsAuth)
{
Application.Run(DependencyManager.Instance.Resolve());
}
}
}
}