コード例 #1
0
        /// <summary>
        /// Is called just before the application is shut down.
        /// </summary>
        /// <param name="e">The event arguments that contain more information about the application shutdown.</param>
        protected override void OnExit(ExitEventArgs e)
        {
            // Calls the base implementation of this method
            base.OnExit(e);

            // Calls the on exit event handler, where the user is able to do custom shutdown operations
            this.OnExitAsync().Wait();

            // Calls the dispose method of the application
            this.Dispose(true);
        }
コード例 #2
0
ファイル: ShellDialog.cs プロジェクト: KraftikGnoma/baobab
 private void shell_Exit(object sender, ExitEventArgs e)
 {
     Environment.ExitCode = e.ExitCode;
     if (InvokeRequired)
     {
         Invoke((MethodInvoker)Close);
     }
     else
     {
         Close();
     }
 }
コード例 #3
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     db.Dispose();
 }
コード例 #4
0
 void App_Exit(object sender, ExitEventArgs e)
 {
 }
コード例 #5
0
 /// <summary>
 /// Notify the application about closing procedure
 /// </summary>
 /// <param name="e"></param>
 protected override void OnExit(ExitEventArgs e)
 {
     DI.Application.Close();
 }
コード例 #6
0
ファイル: App.xaml.cs プロジェクト: bangush/VideoPlayer
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     ArgsImporter.Dispose();
 }
コード例 #7
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     _trayIcon.Close();
     KeyboardListener.UnRegister();
     AppleKeyboardHID2.Shutdown();
 }
コード例 #8
0
 protected override async void OnExit(ExitEventArgs e)
 {
     await _applicationBootstrapper.OnExitAsync().ConfigureAwait(true);
 }
コード例 #9
0
 private async void Application_Exit(object sender, ExitEventArgs e)
 {
     TrayIconService.Close();
     await SettingsService.Default.SaveAsync();
 }
コード例 #10
0
 protected override void OnExit(ExitEventArgs e)
 {
     appServices.Shutdown(e.ApplicationExitCode);
     base.OnExit(e);
 }
コード例 #11
0
        private void Application_Exit(object sender, ExitEventArgs e)
        {
            var logger = _container.Resolve <ILogger>();

            logger.Close();
        }
コード例 #12
0
 protected override void OnExit(ExitEventArgs e)
 {
     _instance?.ReleaseMutex();
     base.OnExit(e);
 }
コード例 #13
0
ファイル: App.xaml.cs プロジェクト: iEduard/Connecty
 private void Application_Exit(object sender, ExitEventArgs e)
 {
 }
コード例 #14
0
 protected override void OnExit(ExitEventArgs e)
 {
     bootstrapper.Shutdown();
     base.OnExit(e);
 }
コード例 #15
0
 protected override void OnExit(ExitEventArgs e)
 {
     TfsTeamProjectCollectionCache.ClearCache();
     this.logger.Log("Application exited", TraceEventType.Information);
     base.OnExit(e);
 }
コード例 #16
0
		protected virtual void OnExit(ExitEventArgs args)
		{
			var exit = this.Exit;

			if(exit != null)
				exit(this, args);
		}
コード例 #17
0
ファイル: App.xaml.cs プロジェクト: esapilearn/YP_Plancheck
 protected override void OnExit(ExitEventArgs e)
 {
     AppComThread.Instance.Dispose();
     base.OnExit(e);
 }
コード例 #18
0
 static void app_Exit(object sender, ExitEventArgs e)
 {
     MessageBox.Show("" + e.ApplicationExitCode);
 }
コード例 #19
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     m_dataContext.ProcessPropertyChange();
     m_dataContext.SaveSettings();
 }
コード例 #20
0
        protected override void OnExit(ExitEventArgs e)
        {
            nIcon.Visible = false;

            base.OnExit(e);
        }
コード例 #21
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     CleanShutdown();
 }
コード例 #22
0
 static void AppExit(object sender, ExitEventArgs e)
 {
     MessageBox.Show("App has exited");
 }
コード例 #23
0
 /// <summary>
 /// Called when [application exit].
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="ExitEventArgs"/> instance containing the event data.</param>
 private void OnApplicationExit(object sender, ExitEventArgs e)
 {
     try { Dispose(); }
     catch { /* Ignore exception and continue */ }
 }
コード例 #24
0
 private void App_Exit(object sender, ExitEventArgs e)
 {
     // Hide icon when exit
     trayicon.Visible = false;
 }
コード例 #25
0
ファイル: App.xaml.cs プロジェクト: tltgg/FamilyShow
 /// <summary>
 /// Occurs when the application exits.
 /// </summary>
 protected override void OnExit(ExitEventArgs e)
 {
     SaveRecentFiles();
     base.OnExit(e);
 }
コード例 #26
0
ファイル: App.xaml.cs プロジェクト: mjheller/wpffix
 protected override void OnExit(ExitEventArgs e)
 {
     base.OnExit(e);
     _appRunner.Stop();
 }
コード例 #27
0
 protected override void OnExit(ExitEventArgs _)
 {
     LogGrok.Resources.Properties.Settings.Default.Save();
     Logger.FlushAll();
 }
コード例 #28
0
ファイル: App.xaml.cs プロジェクト: jcksnvllxr80/PTO_Emailer
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     PTO_Emailer.Properties.Settings.Default.Save();
 }
コード例 #29
0
 // System.Windows.Application.Startupイベントを発生
 protected override void OnExit(ExitEventArgs e)
 {
     base.OnExit(e);
     this.notifyIcon.Dispose();
 }
コード例 #30
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     AppMAnager.DisposeNotIcon();
 }
コード例 #31
0
ファイル: App.xaml.cs プロジェクト: mtnleitemtn/XOutput
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     ApplicationContext.Global.Close();
 }
コード例 #32
0
		private bool RaiseExit(int exitCode)
		{
			var args = new ExitEventArgs(exitCode);

			//激发“Exit”退出事件
			this.OnExit(args);

			return !args.Cancel;
		}
コード例 #33
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     CloseSession();
 }
コード例 #34
0
ファイル: MainFrame.cs プロジェクト: jdmclark/nullunit
        private void onExitEvent(object sender, ExitEventArgs args)
        {
            // Fire exiting event, allowing presenters to cancel.
            ExitingEventArgs e = new ExitingEventArgs();
            services.EventBus.FireEvent(this, e);

            if (!e.Cancel)
            {
                // Exiting event not canceled.
                // Exit application.
                Application.Exit();
            }
        }
コード例 #35
0
ファイル: App.xaml.cs プロジェクト: radtek/AmdUtil
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     CH341_Test.Properties.Settings.Default.Save();
 }