Exemplo n.º 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();
     }
 }
Exemplo n.º 2
0
 /// <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();
 }
Exemplo n.º 3
0
 protected override void OnExit(ExitEventArgs e)
 {
     // clean up mutex
     if (_instanceMutex != null)
         _instanceMutex.ReleaseMutex();
     base.OnExit(e);
 }
Exemplo n.º 4
0
        protected override void OnExit(ExitEventArgs e)
        {
            _notifyIcon.Dispose();
            PersistenceContext?.Dispose();

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

            repo.ExportXML("Babumi.config");
        }
Exemplo n.º 6
0
 protected override void OnExit(ExitEventArgs e)
 {
     /*if(ImapController.IdleThread != null)
     {
         ImapController.IdleThread.Abort();
     }*/
 }
Exemplo n.º 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();
        }
Exemplo n.º 9
0
 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);
   }
 }
Exemplo n.º 11
0
        protected override void OnExit(ExitEventArgs e)
        {
            this.applicationController.Shutdown();
            this.container.Dispose();

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

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

            DatabaseStarter.StopDatabase();
            base.OnExit(e);
        }
Exemplo n.º 15
0
 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);
        }
Exemplo n.º 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();
		} 
Exemplo n.º 19
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

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

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

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

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

            ViewModelLocator.Cleanup();
            SystemWatchdog.Default.OnExit();
        }
Exemplo n.º 29
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            this.colorGenerator.Dispose();
            this.audioStream.Dispose();
        }
Exemplo n.º 30
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

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

              base.OnExit(e);
        }
Exemplo n.º 32
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     if (_mutex != null)
     {
         _mutex.ReleaseMutex();
     }
     base.OnExit(e);
 }
Exemplo n.º 33
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     CommonHelper.CleanUpTempDir();
 }
Exemplo n.º 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();
 }
Exemplo n.º 35
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     SynchronousTCPClient.Close();
 }
Exemplo n.º 36
0
 protected override void OnExit(System.Windows.ExitEventArgs e)
 {
     DataBaseConnector.GetInstance()?.StopConnection();
 }
Exemplo n.º 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();
 }
Exemplo n.º 38
0
 void ApplicationExitHandler(object sender, System.Windows.ExitEventArgs args)
 {
     Default.Save();
 }
Exemplo n.º 39
0
        protected override void OnExit(System.Windows.ExitEventArgs e)
        {
            base.OnExit(e);

            //DeleteVideoResources();
        }
Exemplo n.º 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();
 }