public void Start()
 {
     GripItService.Start();
     Started = true;
     _animationSchedulerSubscription = Observable.Timer(TimeSpan.Zero, TimeSpan.FromMilliseconds(RefreshInterval))
                                       .Do(_ => Application.Current.Dispatcher.Invoke(Animate))
                                       .Select(_ => Observable.Timer(TimeSpan.FromMilliseconds(AnimationDuration)))
                                       .Switch()
                                       .Subscribe();
 }
Beispiel #2
0
 public void Start()
 {
     GripItService.Start();
     Started = true;
 }