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