示例#1
0
 /// <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();
         });
     }
 }
示例#2
0
 public void Stop()
 {
     LoopTimer.Stop();
     Skype = null;
 }