Exemplo n.º 1
0
 public void Close()
 {
     jiraTimerCollection.SaveTimers();
     idleTimerCollection.SaveTimers();
     appSettings.SaveSettings();
     jiraConnectionSettings.SaveSettings();
 }
Exemplo n.º 2
0
        public void Close()
        {
            trackUsage.TrackAppUsage(TrackingType.AppClose);
            var runningTimer = jiraTimerCollection.GetRunningTimerId();

            if (runningTimer.HasValue)
            {
                jiraTimerCollection.StopTimer(runningTimer.Value, false);
            }
            settingsCollection.AppSettings.TimerRunningOnShutdown = runningTimer;

            idleTimerCollection.StopLockedTimers();

            jiraTimerCollection.SaveTimers();
            idleTimerCollection.SaveTimers();
            settingsCollection.SaveSettings();
        }
Exemplo n.º 3
0
        public void Close()
        {
            trackUsage.TrackAppUsage(TrackingType.AppClose);
            var runningTimer = jiraTimerCollection.GetRunningTimerId();

            if (runningTimer.HasValue)
            {
                jiraTimerCollection.StopTimer(runningTimer.Value);
            }
            settingsCollection.AppSettings.TimerRunningOnShutdown = runningTimer;

            try
            {
                idleTimerCollection.StopLockedTimers();
            }
            catch (NoIdleTimerRunningException) { /*This being caught is good, there was nothing to stop*/ }

            jiraTimerCollection.SaveTimers();
            idleTimerCollection.SaveTimers();
            settingsCollection.SaveSettings();
        }