static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (useNewDesign) { mainWindow = new MainWindow(); } else { mainForm = new MainForm(); } loadingWindow = new LoadingWindow(); trainerForm = new TrainingStartForm(); mainThreadContext = SynchronizationContext.Current; if (useNewDesign) { Application.Run(mainWindow); } else { Application.Run(mainForm); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (useNewDesign) { mainWindow = new MainWindow(); } else { mainForm = new MainForm(); } loadingWindow = new LoadingWindow(); trainerForm = new TrainingStartForm(); mainThreadContext = SynchronizationContext.Current; if (useNewDesign) Application.Run(mainWindow); else Application.Run(mainForm); }