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