Exemple #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     GenericExceptions.InitializeExceptions();
     SingleApplication.Run(new Main());
 }
Exemple #2
0
 public static void Main(string[] args)
 {
     if (SingleApplication.Run())
     {
         App app = new App();
         app.Run();
     }
 }
Exemple #3
0
 private static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.ThreadException += new ThreadExceptionEventHandler(Program.Program_UIThreadException);
     Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(Program.CurrentDomain_UnhandledException);
     if (SingleApplication.Run(new MainForm()))
     {
     }
 }
Exemple #4
0
        private static void Main()
        {
            Zhc.Data.DbContext.AddDataSource("vehic", Zhc.Data.DbContext.DbType_SqlServer, "192.168.2.34", "VehIc", "sa", "vehic0901");
            Zhc.Data.DbContext.DefaultDataSourceName = "vehic";
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");
            DevExpress.XtraEditors.Controls.Localizer.Active       = new XtraControlLocalizer();
            DevExpress.XtraGrid.Localization.GridLocalizer.Active  = new XtraGridLocalizer();

            SingleApplication.Run(new FrmMain());
        }
Exemple #5
0
        private static void Main(string[] args)
        {
            Program.Params = args;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            IniFile iniFile = new IniFile(".\\SMS Search.ini");

            if (iniFile.IniReadValue("GENERAL", "MULTI_INSTANCE") == "1")
            {
                Application.Run(new frmMain(Program.Params));
                return;
            }
            SingleApplication.Run(new frmMain(Program.Params));
        }
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     SingleApplication.Run(new TeleZeit());
 }