示例#1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (SingleInstance.IsRunning())
     {
         return;
     }
     Updater.PeriodicUpdate();
     Application.Run(new MainForm());
 }
示例#2
0
文件: Program.cs 项目: 3roman/Thermor
 private static void Main()
 {
     if (SingleInstance.IsRunning())
     {
         SingleInstance.ShowRunningInstance();
     }
     else
     {
         CreateInstance();
     }
 }
示例#3
0
 static void Main()
 {
     if (SingleInstance.IsRunning())
     {
         return;
     }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     new Action(Updater.PeriodicUpdate).BeginInvoke(null, null);
     Application.Run(new MainForm());
 }
示例#4
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (SingleInstance.IsRunning())
     {
         return;
     }
     AppString.LoadStrings();
     Updater.PeriodicUpdate();
     XmlDicHelper.ReloadDics();
     Application.Run(new MainForm());
 }
示例#5
0
        static void Main(string[] args)
        {
            bool isRestart = args.Length > 0 && args[0] == "Restart";

            if (!isRestart && SingleInstance.IsRunning())
            {
                return;
            }
            Updater.PeriodicUpdate();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }