private void Application_Startup(object sender, StartupEventArgs e) { if (!Manager.MainWindowViewModel.RanOnStartup) { var mainWindow = new UI.MainWindow(); mainWindow.Show(); } }
private void Application_Startup(object sender, StartupEventArgs e) { if (!Manager.MainWindowViewModel.RanOnStartup) { var mainWindow = new UI.MainWindow(); mainWindow.Show(); } if (ProductConstants.IsDevMode) { UI.LogWindow.ShowLog(new Point(MainWindow.Left + MainWindow.Width, MainWindow.Top)); } }
private void Application_Startup(object sender, StartupEventArgs e) { bool.TryParse(ConfigurationManager.AppSettings["ForceSoftwareRendering"], out bool shouldRenderInSoftware); if (shouldRenderInSoftware) { RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly; } else { RenderOptions.ProcessRenderMode = RenderMode.Default; } if (!Manager.MainWindowViewModel.RanOnStartup) { var mainWindow = new UI.MainWindow(); mainWindow.Show(); } if (ProductConstants.IsDevMode) { UI.LogWindow.ShowLog(new Point(MainWindow.Left + MainWindow.Width, MainWindow.Top)); } }