void Hands_LSwypeDownComplete(object sender, ProgressEventArgs a)
 {
     ImageSource temp = Layout5.Source;
     Layout5.Source = Layout2.Source;
     Layout2.Source = Layout4.Source;
     Layout4.Source = temp;
     Canvas.SetTop(Layout4, -563);
     Canvas.SetTop(Layout2, 259);
     Canvas.SetTop(Layout5, 1080);
 }
 void Hands_LSwypeLeftComplete(object sender, ProgressEventArgs a)
 {
     ImageSource temp = Layout1.Source;
     Layout1.Source = Layout2.Source;
     Layout2.Source = Layout3.Source;
     Layout3.Source = temp;
     Canvas.SetLeft(Layout1, -Layout1.Width);
     Canvas.SetLeft(Layout2, (1920 - Layout2.Width) / 2);
     Canvas.SetLeft(Layout3, 1920);
 }
 void Hands_LSwypeDown(object sender, ProgressEventArgs a)
 {
 }
 void Hands_ZoomOut(object sender, ProgressEventArgs a)
 {
     Layout2.Width /= 1.1d;
     Layout2.Height /= 1.1d;
     Canvas.SetLeft(Layout2, (1920.0 - Layout2.Width) / 2.0);
     Canvas.SetTop(Layout2, (1080.0 - Layout2.Height) / 2.0);
 }
 void Hands_RSwypeUp(object sender, ProgressEventArgs a)
 {
     ResetScale(Layout2);
     Canvas.SetTop(Layout4, -563);
     Canvas.SetTop(Layout2, 259 - (563+259) * a.Progress);
     Canvas.SetTop(Layout5, 1080 - (1080 - 259) * a.Progress);
 }
 void Hands_RSwypeRight(object sender, ProgressEventArgs a)
 {
     ResetScale(Layout2);
     Canvas.SetLeft(Layout1, -1000 +(1000+460)*a.Progress);
     Canvas.SetLeft(Layout2, 460 + (1920-460)*a.Progress);
     Canvas.SetLeft(Layout3, 1920);
 }
 void Hands_RPressComplete(object sender, ProgressEventArgs a)
 {
     Wait.Visibility = System.Windows.Visibility.Hidden;
     Hands.ChangeMode(HandSwypes.RecognitionMode.CURSOR);
     kinectButton.Visibility = Visibility.Visible;
     Button1.Visibility = Visibility.Visible;
     Button2.Visibility = Visibility.Visible;
     Button3.Visibility = Visibility.Visible;
 }
Пример #8
0
 void LeftHand_PressComplete(object sender, ProgressEventArgs a)
 {
     if (LPressComplete != null)
     {
         LPressComplete(this, a);
     }
 }
Пример #9
0
 void RightHand_SwypeUpComplete(object sender, ProgressEventArgs a)
 {
     if (RSwypeUpComplete != null)
     {
         RSwypeUpComplete(this, a);
     }
 }
Пример #10
0
 void RightHand_SwypeRight(object sender, ProgressEventArgs a)
 {
     if (RSwypeRight != null)
     {
         RSwypeRight(this, a);
     }
 }
Пример #11
0
 void RightHand_PressComplete(object sender, ProgressEventArgs a)
 {
     if (RPressComplete != null)
     {
         RPressComplete(this, a);
     }
 }
Пример #12
0
 void RightHand_Press(object sender, ProgressEventArgs a)
 {
     if (RPress != null)
     {
         RPress(this, a);
     }
 }
Пример #13
0
 void LeftHand_SwypeUpComplete(object sender, ProgressEventArgs a)
 {
     if (LSwypeUpComplete != null)
     {
         LSwypeUpComplete(this, a);
     }
 }
Пример #14
0
 void LeftHand_SwypeRight(object sender, ProgressEventArgs a)
 {
     if (LSwypeRight != null)
     {
         LSwypeRight(this, a);
     }
 }
Пример #15
0
 void LeftHand_SwypeDown(object sender, ProgressEventArgs a)
 {
     if (LSwypeDown != null)
     {
         LSwypeDown(this, a);
     }
 }
 void Hands_RPress(object sender, ProgressEventArgs a)
 {
     if (a.Progress > 0.0f)
         Wait.Visibility = System.Windows.Visibility.Visible;
     else
         Wait.Visibility = System.Windows.Visibility.Hidden;
     RotateTransform r = new RotateTransform();
     r.Angle = 360 * a.Progress;
     Wait.RenderTransform = r;
 }
 void Hands_LSwypeRight(object sender, ProgressEventArgs a)
 {
 }
Пример #18
0
 void LeftHand_Press(object sender, ProgressEventArgs a)
 {
     if (LPress != null)
     {
         LPress(this, a);
     }
 }