コード例 #1
0
ファイル: App.xaml.cs プロジェクト: rlr/guardian-vpn-windows
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     if (!Manager.MainWindowViewModel.RanOnStartup)
     {
         var mainWindow = new UI.MainWindow();
         mainWindow.Show();
     }
 }
コード例 #2
0
        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));
            }
        }
コード例 #3
0
        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));
            }
        }