コード例 #1
0
ファイル: App.xaml.cs プロジェクト: sobanjom/REvernus
        private async void Application_Startup(object sender, StartupEventArgs e)
        {
            Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;

            await StartupAndExit.PerformStartupActions();

            MainWindow = new MainWindowView();
            MainWindow.Show();
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: killerog/REvernus
        private async void Application_Startup(object sender, StartupEventArgs e)
        {
            Current.ShutdownMode = ShutdownMode.OnMainWindowClose;
            Environment.ExitCode = -1;

            await StartupAndExit.PerformStartupActions();

            MainWindow = new MainWindowView();
            MainWindow.ShowDialog();

            Environment.ExitCode = -10;
        }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: hukela/SpatialAnalysis
 //当程序关闭时执行
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     StartupAndExit.ApplicationExit();
 }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: hukela/SpatialAnalysis
 //当程序启动时执行
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     StartupAndExit.ApplicationStartup();
 }