Exemple #1
0
        static void Main(string[] arguments)
        {
#if EASYTEST
            DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register();
#endif
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DCSecurityDemoWindowsFormsApplication application = new DCSecurityDemoWindowsFormsApplication();
            try {
#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

                application.Setup();
                application.Start();
            }
            catch (Exception e) {
                application.HandleException(e);
            }
        }
Exemple #2
0
        static void Main(string[] arguments) {
#if EASYTEST
            DevExpress.ExpressApp.Win.EasyTest.EasyTestRemotingRegistration.Register();
#endif
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DCSecurityDemoWindowsFormsApplication application = new DCSecurityDemoWindowsFormsApplication();
            try {
#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

                application.Setup();
                application.Start();
            }
            catch(Exception e) {
                application.HandleException(e);
            }
        }
Exemple #3
0
 static void Main(string[] arguments) {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     DCSecurityDemoWindowsFormsApplication application = new DCSecurityDemoWindowsFormsApplication();
     try {
         if(ConfigurationManager.ConnectionStrings["ConnectionString"] != null) {
             application.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
         }
         application.Setup();
         application.Start();
     }
     catch(Exception e) {
         application.HandleException(e);
     }
 }