コード例 #1
0
 /// <summary>
 /// Stops the wrapped timer.
 /// </summary>
 public void Stop()
 {
     SmartDispatcher.BeginInvoke(() =>
     {
         _timer.Stop();
     });
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Timer"/> class.
 /// </summary>
 public Timer()
 {
     SmartDispatcher.BeginInvoke(() =>
     {
         _timer       = new DispatcherTimer();
         _timer.Tick += OnTimerTick;
     }).Wait();
 }