static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Container = new UnityContainer(); GeoUsersServices.Initialize(Container); Application.Run(Container.Resolve <Main>()); }
public App() { ShutdownMode = ShutdownMode.OnExplicitShutdown; Container = new UnityContainer(); try { GeoUsersServices.Initialize(Container); Cef.Initialize(); } catch (BusinessException e) { Logger.Log(e); var errorForm = new ConnectionErrorForm(); errorForm.ShowDialog(); Shutdown(); } }