private static void Main() { #if EASYTEST DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register(); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var application = new SecurityDemoWindowsFormsApplication(); application.CreateCustomTemplate += xafApplication_CreateCustomTemplate; application.CreateCustomLogonWindowObjectSpace += application_CreateCustomLogonWindowObjectSpace; application.CreateCustomLogonWindowControllers += application_CreateCustomLogonWindowControllers; #if EASYTEST if (ConfigurationManager.ConnectionStrings["EasyTestConnectionString"] != null) { application.ConnectionString = ConfigurationManager.ConnectionStrings["EasyTestConnectionString"].ConnectionString; } #else if (ConfigurationManager.ConnectionStrings["ConnectionString"] != null) { application.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } #endif try{ application.Setup(); application.Start(); } catch (Exception e) { application.HandleException(e); } }
private static void Main(){ #if EASYTEST DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register(); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var application = new SecurityDemoWindowsFormsApplication(); application.CreateCustomTemplate += xafApplication_CreateCustomTemplate; application.CreateCustomLogonWindowObjectSpace += application_CreateCustomLogonWindowObjectSpace; application.CreateCustomLogonWindowControllers += application_CreateCustomLogonWindowControllers; #if EASYTEST if(ConfigurationManager.ConnectionStrings["EasyTestConnectionString"] != null) { application.ConnectionString = ConfigurationManager.ConnectionStrings["EasyTestConnectionString"].ConnectionString; } #else if (ConfigurationManager.ConnectionStrings["ConnectionString"] != null){ application.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } #endif try{ application.Setup(); application.Start(); } catch (Exception e){ application.HandleException(e); } }
static void Main(string[] arguments) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SecurityDemoWindowsFormsApplication application = new SecurityDemoWindowsFormsApplication(); application.CreateCustomTemplate += new EventHandler<CreateCustomTemplateEventArgs>(xafApplication_CreateCustomTemplate); application.CreateCustomLogonWindowObjectSpace += new EventHandler<CreateCustomLogonWindowObjectSpaceEventArgs>(application_CreateCustomLogonWindowObjectSpace); application.CreateCustomLogonWindowControllers += new EventHandler<CreateCustomLogonWindowControllersEventArgs>(application_CreateCustomLogonWindowControllers); if(ConfigurationManager.ConnectionStrings["ConnectionString"] != null) { application.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } try { application.Setup(); application.Start(); } catch(Exception e) { application.HandleException(e); } }
static void Main(string[] arguments) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SecurityDemoWindowsFormsApplication application = new SecurityDemoWindowsFormsApplication(); application.CreateCustomTemplate += new EventHandler <CreateCustomTemplateEventArgs>(xafApplication_CreateCustomTemplate); application.CreateCustomLogonWindowObjectSpace += new EventHandler <CreateCustomLogonWindowObjectSpaceEventArgs>(application_CreateCustomLogonWindowObjectSpace); application.CreateCustomLogonWindowControllers += new EventHandler <CreateCustomLogonWindowControllersEventArgs>(application_CreateCustomLogonWindowControllers); if (ConfigurationManager.ConnectionStrings["ConnectionString"] != null) { application.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } try { application.Setup(); application.Start(); } catch (Exception e) { application.HandleException(e); } }
static void Main(string[] arguments) { #if EasyTest DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register(); #endif Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SecurityDemoWindowsFormsApplication application = new SecurityDemoWindowsFormsApplication(); application.CreateCustomTemplate += new EventHandler <CreateCustomTemplateEventArgs>(xafApplication_CreateCustomTemplate); application.CreateCustomLogonWindowObjectSpace += new EventHandler <CreateCustomLogonWindowObjectSpaceEventArgs>(application_CreateCustomLogonWindowObjectSpace); application.CreateCustomLogonWindowControllers += new EventHandler <CreateCustomLogonWindowControllersEventArgs>(application_CreateCustomLogonWindowControllers); #if EasyTest if (ConfigurationManager.ConnectionStrings["EasyTestConnectionString"] != null) { application.ConnectionString = ConfigurationManager.ConnectionStrings["EasyTestConnectionString"].ConnectionString; } #else if (ConfigurationManager.ConnectionStrings["ConnectionString"] != null) { application.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; } #endif if (System.Diagnostics.Debugger.IsAttached && application.CheckCompatibilityType == CheckCompatibilityType.DatabaseSchema) { application.DatabaseUpdateMode = DatabaseUpdateMode.UpdateDatabaseAlways; } try { application.Setup(); application.Start(); } catch (Exception e) { application.HandleException(e); } }