public void ResetTimer(TimerSettings timerSettings) { if (!dicTimers.ContainsKey(timerSettings.TimerId)) { dicTimers[timerSettings.TimerId] = new TimerStatus(); } dicTimers[timerSettings.TimerId].EndTime = DateTime.Now + timerSettings.CounterLength; dicTimers[timerSettings.TimerId].Filename = timerSettings.FileName; dicTimers[timerSettings.TimerId].FileTitlePrefix = timerSettings.FileTitlePrefix; dicTimers[timerSettings.TimerId].FileCountdownEndText = timerSettings.FileCountdownEndText; dicTimers[timerSettings.TimerId].ClearFileOnReset = timerSettings.ClearFileOnReset; dicTimers[timerSettings.TimerId].PausedTimeLeft = 0; SaveTimers(); if (timerSettings.ClearFileOnReset) { SaveTimerToFile(timerSettings.FileName, String.Empty); } }