Example #1
0
 /// <summary>
 /// System.Windows.Application.Exit イベント を発生させます。
 /// </summary>
 /// <param name="e">イベントデータ を格納している ExitEventArgs</param>
 protected override void OnExit(ExitEventArgs e)
 {
     base.OnExit(e);
     if (this.wrapperIconNotify != null) {
         this.wrapperIconNotify.Dispose();
     }
 }
 /// <summary>
 ///     System.Windows.Application.Exit イベント を発生させます。
 /// </summary>
 /// <param name="e">イベントデータ を格納している ExitEventArgs</param>
 protected override void OnExit(ExitEventArgs e)
 {
     base.OnExit(e);
     _client.Finish();
     _client.Dispose();
     _notifyIcon.Dispose();
 }
Example #3
0
 protected override void OnExit(ExitEventArgs e)
 {
     // clean up mutex
     if (_instanceMutex != null)
         _instanceMutex.ReleaseMutex();
     base.OnExit(e);
 }
Example #4
0
        protected override void OnExit(ExitEventArgs e)
        {
            _notifyIcon.Dispose();
            PersistenceContext?.Dispose();

            base.OnExit(e);
        }
Example #5
0
        protected override void OnExit(System.Windows.ExitEventArgs e)
        {
            //!< プロジェクトのコンフィグファイルを読み込む
            var repo = ServiceLocator.Instance.GetInstance <BabumiConfigRepository>();

            repo.ExportXML("Babumi.config");
        }
Example #6
0
 protected override void OnExit(ExitEventArgs e)
 {
     /*if(ImapController.IdleThread != null)
     {
         ImapController.IdleThread.Abort();
     }*/
 }
Example #7
0
        protected override void OnExit(ExitEventArgs e)
        {
            // let counter save current state
            YandexMetrica.ReportExit();

            base.OnExit(e);
        }
        void ApplicationExit(object sender, ExitEventArgs e)
        {
            Trace.WriteLine(string.Format(Name + " exiting with code {0}", e.ApplicationExitCode));

            Trace.Flush();
            Settings.Default.Save();
        }
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     if (Launcher != null)
     {
         Launcher.Quit();
     }
 }
 private static void CurrentApplication_Exit(object sender, ExitEventArgs e)
 {
   if (OnApplicationExit != null)
   {
     OnApplicationExit(sender, e);
   }
 }
Example #11
0
        protected override void OnExit(ExitEventArgs e)
        {
            this.applicationController.Shutdown();
            this.container.Dispose();

            base.OnExit(e);
        }
Example #12
0
 private void App_OnExit(object sender, ExitEventArgs e)
 {
     if (_mMutex == null) return;
     _mMutex.ReleaseMutex();
     _mMutex.Close();
     _mMutex = null;
 }
Example #13
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            var container = TinyIoCContainer.Current;
            container.Resolve<AppHelper>().OnExitApp(this);
        }
        protected override void OnExit(ExitEventArgs e)
        {
            Messenger.Default.Unregister<NotificationMessage>(this, MessageReceived);

            DatabaseStarter.StopDatabase();
            base.OnExit(e);
        }
 void Current_Exit(object sender, ExitEventArgs e)
 {
     if (_mainViewModel != null)
     {
         _mainViewModel.Dispose();
     }
 }
        protected override void OnExit(ExitEventArgs e)
        {
            controller.Shutdown();
            container.Dispose();

            base.OnExit(e);
        }
Example #17
0
 protected override void OnExit(ExitEventArgs e)
 {
   EventP2PDispatcher.StopP2PEventMesh();
   Session.ShutDown();
   base.OnExit(e);
   
 }
		protected override void OnExit(ExitEventArgs e)
		{
			base.OnExit(e);
			Settings.Default.Save();

			m_MainWindowViewModel.OnExit();
		} 
Example #19
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            // Disable needed privileges
            Permissions.SetPrivileges(false);
        }
Example #20
0
 protected override void OnExit(ExitEventArgs e)
 {
     base.OnExit(e);
     // close IRC connections
     if(IRCClient.IsConnected)
         IRCClient.Disconnect();
 }
        protected override void OnExit(ExitEventArgs e)
        {
            _computer.Close();
            _taskbarIcon.Dispose();

            base.OnExit(e);
        }
Example #22
0
		protected override void OnExit(ExitEventArgs e)
		{
			GC.Collect();
			GC.WaitForPendingFinalizers();
			GC.Collect();
			GC.WaitForPendingFinalizers();
		}
Example #23
0
 protected override void OnExit(ExitEventArgs e)
 {
     if (instanceLockMutex != null)
     {
         instanceLockMutex.Dispose();
     }
 }
Example #24
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     if (mutex != null)
     {
         mutex.Dispose();
     }
 }
Example #25
0
 public void aboutToExit(object sender, ExitEventArgs e)
 {
     db.closeConnection();
     windowController.close();
     ThreadsMaster.getInstance().waitToFinish();
     Application.Current.Shutdown();
 }
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            Preference.Current.Save();
            KanColleGame.Current.Proxy.Shutdown();
        }
Example #27
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            SimpleIoc.Default.GetInstance<IRemoteClientListener>().Stop();
            SimpleIoc.Default.GetInstance<ClientListViewModel>().Dispose();
        }
Example #28
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            ViewModelLocator.Cleanup();
            SystemWatchdog.Default.OnExit();
        }
Example #29
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            this.colorGenerator.Dispose();
            this.audioStream.Dispose();
        }
Example #30
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            KanColleClient.Current.Proxy.Shutdown();
            Settings.Current.Save();
        }
Example #31
0
        protected override void OnExit(ExitEventArgs e)
        {
            this.luxa4Slack?.Dispose();
              this.notifyIcon.Dispose();

              base.OnExit(e);
        }
Example #32
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     if (_mutex != null)
     {
         _mutex.ReleaseMutex();
     }
     base.OnExit(e);
 }
Example #33
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     CommonHelper.CleanUpTempDir();
 }
Example #34
0
 /// <summary>
 /// Invoked just before the application shuts down, and cannot be canceled.
 /// </summary>
 /// <param name="sender">The application.</param>
 /// <param name="e">The event data.</param>
 private static void AppExit(object sender, ExitEventArgs e)
 {
     AppManager.Instance.Persist();
     AppManager.Instance.Dispose();
 }
Example #35
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     SynchronousTCPClient.Close();
 }
Example #36
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     DataBaseConnector.GetInstance()?.StopConnection();
 }
Example #37
0
 void Application_Exit(object sender, System.Windows.ExitEventArgs e)
 {
     //ESRI License Initializer generated code.
     //Do not make any call to ArcObjects after ShutDownApplication()
     m_AOLicenseInitializer.ShutdownApplication();
 }
Example #38
0
 void ApplicationExitHandler(object sender, System.Windows.ExitEventArgs args)
 {
     Default.Save();
 }
Example #39
0
        protected override void OnExit(System.Windows.ExitEventArgs e)
        {
            base.OnExit(e);

            //DeleteVideoResources();
        }
Example #40
0
 /// <summary>
 /// Event handler of Exit event
 /// </summary>
 /// <param name="sender">The sender</param>
 /// <param name="e">The args</param>
 private void Application_Exit(object sender, System.Windows.ExitEventArgs e)
 {
     Bootstrapper.Dispsose();
 }