示例#1
0
 protected override void OnKinectCursorLeave(object sender, KinectCursorEventArgs e)
 {
     if (_timerEnabled)
     {
         e.Cursor.StopCursorAnimation();
         _hoverTimer.Stop();
     }
 }
示例#2
0
 protected override void OnKinectCursorEnter(object sender, KinectCursorEventArgs e)
 {
     if (_timerEnabled)
     {
         _hoverTimer.Interval = TimeSpan.FromMilliseconds(HoverInterval);
         e.Cursor.AnimateCursor(HoverInterval);
         _hoverTimer.Start();
     }
 }
示例#3
0
 private void MakeInvisible(object sender, KinectCursorEventArgs e)
 {
     Imagen.Opacity = 0;
 }
示例#4
0
 private void SwitchPage(object sender, KinectCursorEventArgs e)
 {
     if (e.IsDirectionRight)
     {
         LoadedPDF.PreviousPage();
         PauseTracking();
     }
     else
     {
         LoadedPDF.NextPage();
         PauseTracking();
     }
 }
示例#5
0
 private void RewindVidFalse(object sender, KinectCursorEventArgs e)
 {
     _Rewind.Tick -= _Rewind_Tick;
     _Rewind.Stop();
 }
示例#6
0
 private void RewindVidTrue(object sender, KinectCursorEventArgs e)
 {
     _VideoPlayer.Pause();
     IsPaused();
     _Rewind.Start();
     _Rewind.Tick += _Rewind_Tick;
 }
示例#7
0
 private void ForwardVidFalse(object sender, KinectCursorEventArgs e)
 {
     _FastForward.Tick -= _FastForward_Tick;
     _FastForward.Stop();
 }
示例#8
0
 private void ForwardVidTrue(object sender, KinectCursorEventArgs e)
 {
     _VideoPlayer.Pause();
     IsPaused();
     _FastForward.Start();
     _FastForward.Tick += _FastForward_Tick;
 }
示例#9
0
 private void SwitchPicture(object sender, KinectCursorEventArgs e)
 {
     if (e.IsDirectionRight)
     {
         NextPicture(sender, e);
         PauseTracking();
     }
     else
     {
         PreviousPicture(sender, e);
         PauseTracking();
     }
 }
示例#10
0
 private void OutOfBounds(object sender, KinectCursorEventArgs e)
 {
     var _kinect = KinectCursorManager.Instance;
     _kinect.GesturePoints.Clear();
 }
示例#11
0
 private void MakeVisible(object sender, KinectCursorEventArgs e)
 {
     Nombre.Opacity = 1;
     Imagen.Opacity = 1;
 }
 private void MakeVisible(object sender, KinectCursorEventArgs e)
 {
     Imagen.Opacity = 1;
     _Texto.Opacity = 1;
 }
示例#13
0
 private void MakeVisible(object sender, KinectCursorEventArgs e)
 {
     OnHover.Opacity = 1;
 }