コード例 #1
0
 public void Stop()
 {
     GripItService.Stop();
     Started = false;
     if (_animationSchedulerSubscription != null)
     {
         _animationSchedulerSubscription.Dispose();
         _animationSchedulerSubscription = null;
     }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 public void Stop()
 {
     GripItService.Stop();
     Started = false;
 }
コード例 #4
0
 public void Start()
 {
     GripItService.Start();
     Started = true;
 }