/// <summary> /// Stops and disposes of the clock in the TimerViewModel and LoopTimer. /// Verifies that clock has been instantiated before attempting to dispose. /// </summary> public async Task Stop() { if (!Object.Equals(clock, null)) { CurrentTask = ""; Progress = 0; clock.Stop(); clock.Dispose(); await Task.Run(() => { lt.Stop(); }); } }
public void Stop() { LoopTimer.Stop(); Skype = null; }