/// <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); }
private void shell_Exit(object sender, ExitEventArgs e) { Environment.ExitCode = e.ExitCode; if (InvokeRequired) { Invoke((MethodInvoker)Close); } else { Close(); } }
private void Application_Exit(object sender, ExitEventArgs e) { db.Dispose(); }
void App_Exit(object sender, ExitEventArgs e) { }
/// <summary> /// Notify the application about closing procedure /// </summary> /// <param name="e"></param> protected override void OnExit(ExitEventArgs e) { DI.Application.Close(); }
private void Application_Exit(object sender, ExitEventArgs e) { ArgsImporter.Dispose(); }
private void Application_Exit(object sender, ExitEventArgs e) { _trayIcon.Close(); KeyboardListener.UnRegister(); AppleKeyboardHID2.Shutdown(); }
protected override async void OnExit(ExitEventArgs e) { await _applicationBootstrapper.OnExitAsync().ConfigureAwait(true); }
private async void Application_Exit(object sender, ExitEventArgs e) { TrayIconService.Close(); await SettingsService.Default.SaveAsync(); }
protected override void OnExit(ExitEventArgs e) { appServices.Shutdown(e.ApplicationExitCode); base.OnExit(e); }
private void Application_Exit(object sender, ExitEventArgs e) { var logger = _container.Resolve <ILogger>(); logger.Close(); }
protected override void OnExit(ExitEventArgs e) { _instance?.ReleaseMutex(); base.OnExit(e); }
private void Application_Exit(object sender, ExitEventArgs e) { }
protected override void OnExit(ExitEventArgs e) { bootstrapper.Shutdown(); base.OnExit(e); }
protected override void OnExit(ExitEventArgs e) { TfsTeamProjectCollectionCache.ClearCache(); this.logger.Log("Application exited", TraceEventType.Information); base.OnExit(e); }
protected virtual void OnExit(ExitEventArgs args) { var exit = this.Exit; if(exit != null) exit(this, args); }
protected override void OnExit(ExitEventArgs e) { AppComThread.Instance.Dispose(); base.OnExit(e); }
static void app_Exit(object sender, ExitEventArgs e) { MessageBox.Show("" + e.ApplicationExitCode); }
private void Application_Exit(object sender, ExitEventArgs e) { m_dataContext.ProcessPropertyChange(); m_dataContext.SaveSettings(); }
protected override void OnExit(ExitEventArgs e) { nIcon.Visible = false; base.OnExit(e); }
private void Application_Exit(object sender, ExitEventArgs e) { CleanShutdown(); }
static void AppExit(object sender, ExitEventArgs e) { MessageBox.Show("App has exited"); }
/// <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 */ } }
private void App_Exit(object sender, ExitEventArgs e) { // Hide icon when exit trayicon.Visible = false; }
/// <summary> /// Occurs when the application exits. /// </summary> protected override void OnExit(ExitEventArgs e) { SaveRecentFiles(); base.OnExit(e); }
protected override void OnExit(ExitEventArgs e) { base.OnExit(e); _appRunner.Stop(); }
protected override void OnExit(ExitEventArgs _) { LogGrok.Resources.Properties.Settings.Default.Save(); Logger.FlushAll(); }
private void Application_Exit(object sender, ExitEventArgs e) { PTO_Emailer.Properties.Settings.Default.Save(); }
// System.Windows.Application.Startupイベントを発生 protected override void OnExit(ExitEventArgs e) { base.OnExit(e); this.notifyIcon.Dispose(); }
private void Application_Exit(object sender, ExitEventArgs e) { AppMAnager.DisposeNotIcon(); }
private void Application_Exit(object sender, ExitEventArgs e) { ApplicationContext.Global.Close(); }
private bool RaiseExit(int exitCode) { var args = new ExitEventArgs(exitCode); //激发“Exit”退出事件 this.OnExit(args); return !args.Cancel; }
private void Application_Exit(object sender, ExitEventArgs e) { CloseSession(); }
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(); } }
private void Application_Exit(object sender, ExitEventArgs e) { CH341_Test.Properties.Settings.Default.Save(); }