static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (SingleInstance.IsRunning()) { return; } Updater.PeriodicUpdate(); Application.Run(new MainForm()); }
private static void Main() { if (SingleInstance.IsRunning()) { SingleInstance.ShowRunningInstance(); } else { CreateInstance(); } }
static void Main() { if (SingleInstance.IsRunning()) { return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); new Action(Updater.PeriodicUpdate).BeginInvoke(null, null); Application.Run(new MainForm()); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (SingleInstance.IsRunning()) { return; } AppString.LoadStrings(); Updater.PeriodicUpdate(); XmlDicHelper.ReloadDics(); Application.Run(new MainForm()); }
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()); }