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; }
void LeftHand_PressComplete(object sender, ProgressEventArgs a) { if (LPressComplete != null) { LPressComplete(this, a); } }
void RightHand_SwypeUpComplete(object sender, ProgressEventArgs a) { if (RSwypeUpComplete != null) { RSwypeUpComplete(this, a); } }
void RightHand_SwypeRight(object sender, ProgressEventArgs a) { if (RSwypeRight != null) { RSwypeRight(this, a); } }
void RightHand_PressComplete(object sender, ProgressEventArgs a) { if (RPressComplete != null) { RPressComplete(this, a); } }
void RightHand_Press(object sender, ProgressEventArgs a) { if (RPress != null) { RPress(this, a); } }
void LeftHand_SwypeUpComplete(object sender, ProgressEventArgs a) { if (LSwypeUpComplete != null) { LSwypeUpComplete(this, a); } }
void LeftHand_SwypeRight(object sender, ProgressEventArgs a) { if (LSwypeRight != null) { LSwypeRight(this, a); } }
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) { }
void LeftHand_Press(object sender, ProgressEventArgs a) { if (LPress != null) { LPress(this, a); } }