Esempio n. 1
0
 public void Close()
 {
     jiraTimerCollection.SaveTimers();
     idleTimerCollection.SaveTimers();
     appSettings.SaveSettings();
     jiraConnectionSettings.SaveSettings();
 }
Esempio 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();
        }
Esempio 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();
        }