Ejemplo n.º 1
0
        public KinectControl(HoverButton kinectButton, double layoutHeight, double layoutWidth, List<Button> buttons, TextBox debugBox = null)
        {
            _kinectButton = kinectButton;
            _layoutHeight = layoutHeight;
            _layoutWidth = layoutWidth;
            _buttons = buttons;
            _debugBox = debugBox;

            _kinect = KinectSensor.KinectSensors.FirstOrDefault();

            if (_kinect != null)
            {
                _kinect.Start();

                _kinect.ColorStream.Enable();
                _kinect.SkeletonStream.Enable(new TransformSmoothParameters
                    {
                        Smoothing = 0.7f,
                        Correction = 0.1f,
                        Prediction = 0.1f,
                        JitterRadius = 0.05f,
                        MaxDeviationRadius = 0.05f
                    });

                _kinect.SkeletonFrameReady += kinect_SkeletonFrameReady;
            }

            _activeRecognizer = CreateRecognizer();
            _kinectButton.Click += KinectButton_Click;
        }
Ejemplo n.º 2
0
 private static void CheckButton(HoverButton button, Ellipse thumbStick)
 {
     if (IsItemMidpointInContainer(button, thumbStick))
     {
         button.Hovering();
     }
     else
     {
         button.Release();
     }
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.theGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     
     #line 8 "..\..\..\Window7.xaml"
     ((System.Windows.Controls.Canvas)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Canvas_Loaded);
     
     #line default
     #line hidden
     return;
     case 3:
     this.kinectButton = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 4:
     this.frame1 = ((System.Windows.Controls.Frame)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 4
0
        private static void OnButtonLocationChanged(HoverButton hand, List<Button> buttons, int X, int Y)
        {
            if (IsButtonOverObject(hand, buttons)) hand.Hovering(); else hand.Release();

            Canvas.SetLeft(hand, X - (hand.ActualWidth / 2));
            Canvas.SetTop(hand, Y - (hand.ActualHeight / 2));
        }
 public void PassButtons(HoverButton[] Buttons, HoverButton ProgressImage)
 {
     ButtonHeap = Buttons;
     Progress = ProgressImage;
     Progress.RenderTransformOrigin = new Point(0.5, 0.5);
 }
 public HoverEventArgs(HoverButton f)
 {
     msg = f;
 }
 //at least one hand touches
 private void CheckButton(HoverButton button)
 {
     if (button.ImageSource != "") //can't select items that aren't there
     {
         if (IsItemMidpointInContainer(button, rightEllipse) || IsItemMidpointInContainer(button, leftEllipse))
         {
             button.Hovering();
         }
         else
         {
             button.Release();
         }
     }
 }
Ejemplo n.º 8
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\avatar1.xaml"
     ((KinectHubDemo.avatar1)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.kinectButton = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 3:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\..\avatar1.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\..\avatar1.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\..\avatar1.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.theGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.kinectButton = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 3:
                this.toggleControls = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\..\MainWindow.xaml"
                this.toggleControls.Click += new System.Windows.RoutedEventHandler(this.toggleControls_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 23 "..\..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.button4 = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\MainWindow.xaml"
                this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.button5 = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\..\MainWindow.xaml"
                this.button5.Click += new System.Windows.RoutedEventHandler(this.button5_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonExit = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\..\MainWindow.xaml"
                this.buttonExit.Click += new System.Windows.RoutedEventHandler(this.buttonExit_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.videoImage = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.videoTextTip = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.depthImage = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.depthTextTip = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.skeletonCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 15:
                this.skeletonTextTip = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.gestureControls = ((System.Windows.Controls.Expander)(target));
                return;

            case 17:
                this.dtwRead = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\..\MainWindow.xaml"
                this.dtwRead.Click += new System.Windows.RoutedEventHandler(this.DtwReadClick);

            #line default
            #line hidden
                return;

            case 18:
                this.dtwCapture = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\..\MainWindow.xaml"
                this.dtwCapture.Click += new System.Windows.RoutedEventHandler(this.DtwCaptureClick);

            #line default
            #line hidden
                return;

            case 19:
                this.dtwStore = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\..\MainWindow.xaml"
                this.dtwStore.Click += new System.Windows.RoutedEventHandler(this.DtwStoreClick);

            #line default
            #line hidden
                return;

            case 20:
                this.dtwLoadFile = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\..\MainWindow.xaml"
                this.dtwLoadFile.Click += new System.Windows.RoutedEventHandler(this.DtwLoadFile);

            #line default
            #line hidden
                return;

            case 21:
                this.dtwSaveToFile = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\..\MainWindow.xaml"
                this.dtwSaveToFile.Click += new System.Windows.RoutedEventHandler(this.DtwSaveToFile);

            #line default
            #line hidden
                return;

            case 22:
                this.dtwShowGestureTest = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\..\MainWindow.xaml"
                this.dtwShowGestureTest.Click += new System.Windows.RoutedEventHandler(this.DtwShowGestureText);

            #line default
            #line hidden
                return;

            case 23:
                this.gestureList = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 24:
                this.results = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.currentBufferFrame = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:
                this.frameRate = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.dtwTextOutput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.status = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.videoMedia = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 3 "..\..\..\MainWindow.xaml"
                ((KinectingTheDotsUserControl.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.principal = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.titulo = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.seq = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.bolas = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.prox = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.limpa = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.reinicia = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.vermelho = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 10:
                this.verde = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 11:
                this.azul = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 12:
                this.marrom = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 13:
                this.roxo = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 14:
                this.rosa = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 15:
                this.azulescuro = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 16:
                this.amarelo = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 17:
                this.verifica = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 18:
                this.limpar = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 19:
                this.reiniciar = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 20:
                this.senha1 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 21:
                this.senha2 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 22:
                this.senha3 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 23:
                this.senha4 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 24:
                this.e1 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 25:
                this.e2 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 26:
                this.e3 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 27:
                this.e4 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 28:
                this.e5 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 29:
                this.e6 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 30:
                this.e7 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 31:
                this.e8 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 32:
                this.e9 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 33:
                this.e10 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 34:
                this.e11 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 35:
                this.e12 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 36:
                this.e13 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 37:
                this.e14 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 38:
                this.e15 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 39:
                this.e16 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 40:
                this.e17 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 41:
                this.e18 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 42:
                this.e19 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 43:
                this.e20 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 44:
                this.e21 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 45:
                this.e22 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 46:
                this.e23 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 47:
                this.e24 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 48:
                this.e25 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 49:
                this.e26 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 50:
                this.e27 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 51:
                this.e28 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 52:
                this.e29 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 53:
                this.e30 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 54:
                this.e31 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 55:
                this.e32 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 56:
                this.e33 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 57:
                this.e34 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 58:
                this.e35 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 59:
                this.e36 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 60:
                this.e37 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 61:
                this.e38 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 62:
                this.e39 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 63:
                this.e40 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 64:
                this.t1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 65:
                this.t2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 66:
                this.t3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 67:
                this.t4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 68:
                this.t5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 69:
                this.t6 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 70:
                this.t7 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 71:
                this.t8 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 72:
                this.t9 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 73:
                this.t10 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 74:
                this.t11 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 75:
                this.t12 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 76:
                this.t13 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 77:
                this.t14 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 78:
                this.t15 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 79:
                this.t16 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 80:
                this.t17 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 81:
                this.t18 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 82:
                this.t19 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 83:
                this.t20 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 84:
                this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 85:
                this.RightHand = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 86:
                this.videoImage = ((System.Windows.Controls.Image)(target));
                return;

            case 87:
                this.image1 = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 11
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((KinectHubDemo.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((KinectHubDemo.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.theGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     
     #line 10 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Canvas)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Canvas_Loaded);
     
     #line default
     #line hidden
     return;
     case 4:
     this.kinectButton = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 5:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\..\MainWindow.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.button4 = ((System.Windows.Controls.Button)(target));
     
     #line 33 "..\..\..\MainWindow.xaml"
     this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.button5 = ((System.Windows.Controls.Button)(target));
     
     #line 39 "..\..\..\MainWindow.xaml"
     this.button5.Click += new System.Windows.RoutedEventHandler(this.button5_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.button6 = ((System.Windows.Controls.Button)(target));
     
     #line 45 "..\..\..\MainWindow.xaml"
     this.button6.Click += new System.Windows.RoutedEventHandler(this.button6_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.textBlock3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.textTip = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 13:
     this.videoImage = ((System.Windows.Controls.Image)(target));
     return;
     case 14:
     this.progressBar1 = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 15:
     this.button7 = ((System.Windows.Controls.Button)(target));
     
     #line 71 "..\..\..\MainWindow.xaml"
     this.button7.Click += new System.Windows.RoutedEventHandler(this.button7_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 12
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((SkeletalTracking.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 7 "..\..\..\MainWindow.xaml"
     ((SkeletalTracking.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 3:
     this.kinectColorViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 4:
     this.leftEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 5:
     this.rightEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 6:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 7:
     this.headImage = ((System.Windows.Controls.Image)(target));
     return;
     case 8:
     this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 9:
     this.rectangleWXYZ = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 10:
     this.rectangleTUV = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 11:
     this.rectanglePQRS = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 12:
     this.rectangleMNO = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 13:
     this.rectangleJKL = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 14:
     this.rectangleGHI = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 15:
     this.rectangleDEF = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 16:
     this.rectangleABC = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 17:
     this.rectangle2 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 18:
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 19:
     this.kinectButton = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 13
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.SpecialLearning = ((SumaSP.MainWindow)(target));
     
     #line 5 "..\..\..\SumaSP.xaml"
     this.SpecialLearning.Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);
     
     #line default
     #line hidden
     
     #line 5 "..\..\..\SumaSP.xaml"
     this.SpecialLearning.Closing += new System.ComponentModel.CancelEventHandler(this.WindowClosing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.GridLayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.canvasPersonalPreferences = ((System.Windows.Controls.Canvas)(target));
     return;
     case 4:
     this.btnAddAngle = ((System.Windows.Controls.Button)(target));
     return;
     case 5:
     this.btnMinusAngle = ((System.Windows.Controls.Button)(target));
     return;
     case 6:
     this.lblAngle = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.lblSelectReps = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.btnAddReps = ((System.Windows.Controls.Button)(target));
     
     #line 41 "..\..\..\SumaSP.xaml"
     this.btnAddReps.Click += new System.Windows.RoutedEventHandler(this.BtnAddRepsClick);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnMinusReps = ((System.Windows.Controls.Button)(target));
     
     #line 49 "..\..\..\SumaSP.xaml"
     this.btnMinusReps.Click += new System.Windows.RoutedEventHandler(this.BtnMinusRepsClick);
     
     #line default
     #line hidden
     return;
     case 10:
     this.lblReps = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.LblSelectTime = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.BtnAddTime = ((System.Windows.Controls.Button)(target));
     
     #line 59 "..\..\..\SumaSP.xaml"
     this.BtnAddTime.Click += new System.Windows.RoutedEventHandler(this.BtnAddTimeClick);
     
     #line default
     #line hidden
     return;
     case 13:
     this.BtnReduceTime = ((System.Windows.Controls.Button)(target));
     
     #line 67 "..\..\..\SumaSP.xaml"
     this.BtnReduceTime.Click += new System.Windows.RoutedEventHandler(this.BtnReduceTimeClick);
     
     #line default
     #line hidden
     return;
     case 14:
     this.lblTimer = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.kinectCursorSettings = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 16:
     this.lblInfoAngle = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.lblInfoReps = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.lblInfoTime = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.btnContinue = ((System.Windows.Controls.Button)(target));
     
     #line 80 "..\..\..\SumaSP.xaml"
     this.btnContinue.Click += new System.Windows.RoutedEventHandler(this.BtnContinueClick);
     
     #line default
     #line hidden
     return;
     case 20:
     this.canvasMainDashboard = ((System.Windows.Controls.Canvas)(target));
     return;
     case 21:
     this.canvasActivityDashboard = ((System.Windows.Controls.Canvas)(target));
     return;
     case 22:
     this.lblMyDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.lblActivityDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 24:
     this.lblUserRepsDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.lblSelectedAngle = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.lblMaximumAngleDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.lblMinimumAngleDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.lblInfoRepsDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 29:
     this.lblInfoAngleSDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.lblInfoMaxAngleDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 31:
     this.lblInfoMinAngleDashbd = ((System.Windows.Controls.Label)(target));
     return;
     case 32:
     this.progressBarTime = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 33:
     this.progressBarReps = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 34:
     this.lblTimePercentage = ((System.Windows.Controls.Label)(target));
     return;
     case 35:
     this.lblRepsPercentage = ((System.Windows.Controls.Label)(target));
     return;
     case 36:
     this.lblTimeDashBd = ((System.Windows.Controls.Label)(target));
     return;
     case 37:
     this.separator1 = ((System.Windows.Controls.Separator)(target));
     return;
     case 38:
     this.lblShowTimerDashBd = ((System.Windows.Controls.Label)(target));
     return;
     case 39:
     this.separator2 = ((System.Windows.Controls.Separator)(target));
     return;
     case 40:
     this.separator3 = ((System.Windows.Controls.Separator)(target));
     return;
     case 41:
     this.separator4 = ((System.Windows.Controls.Separator)(target));
     return;
     case 42:
     this.BtnBack = ((System.Windows.Controls.Button)(target));
     
     #line 106 "..\..\..\SumaSP.xaml"
     this.BtnBack.Click += new System.Windows.RoutedEventHandler(this.BtnBackClick);
     
     #line default
     #line hidden
     return;
     case 43:
     this.kinectCursorDashbd = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 44:
     this.canvasGame = ((System.Windows.Controls.Canvas)(target));
     return;
     case 45:
     this.VideoStream = ((System.Windows.Controls.Image)(target));
     return;
     case 46:
     this.btnPlay = ((System.Windows.Controls.Button)(target));
     
     #line 123 "..\..\..\SumaSP.xaml"
     this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.PlayButtonClick);
     
     #line default
     #line hidden
     return;
     case 47:
     this.btnPause = ((System.Windows.Controls.Button)(target));
     
     #line 128 "..\..\..\SumaSP.xaml"
     this.btnPause.Click += new System.Windows.RoutedEventHandler(this.PauseButtonClick);
     
     #line default
     #line hidden
     return;
     case 48:
     this.btnStop = ((System.Windows.Controls.Button)(target));
     
     #line 133 "..\..\..\SumaSP.xaml"
     this.btnStop.Click += new System.Windows.RoutedEventHandler(this.StopButtonClick);
     
     #line default
     #line hidden
     return;
     case 49:
     this.btnDashboard = ((System.Windows.Controls.Button)(target));
     
     #line 138 "..\..\..\SumaSP.xaml"
     this.btnDashboard.Click += new System.Windows.RoutedEventHandler(this.BtnDashboardClick);
     
     #line default
     #line hidden
     return;
     case 50:
     this.btnQuit = ((System.Windows.Controls.Button)(target));
     
     #line 146 "..\..\..\SumaSP.xaml"
     this.btnQuit.Click += new System.Windows.RoutedEventHandler(this.QuitButtonClick);
     
     #line default
     #line hidden
     return;
     case 51:
     this.btnReset = ((System.Windows.Controls.Button)(target));
     
     #line 151 "..\..\..\SumaSP.xaml"
     this.btnReset.Click += new System.Windows.RoutedEventHandler(this.BtnResetClick);
     
     #line default
     #line hidden
     return;
     case 52:
     this.txtBlockTimer = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 53:
     this.lblClock = ((System.Windows.Controls.Label)(target));
     return;
     case 54:
     this.LblUserMessages = ((System.Windows.Controls.Label)(target));
     return;
     case 55:
     this.kinectCursorMainWindow = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     
     #line 162 "..\..\..\SumaSP.xaml"
     this.kinectCursorMainWindow.Loaded += new System.Windows.RoutedEventHandler(this.kinectCursorMainWindow_Loaded);
     
     #line default
     #line hidden
     return;
     case 56:
     this.UserPositioninglabel = ((System.Windows.Controls.Label)(target));
     return;
     case 57:
     this.imageClock = ((System.Windows.Controls.Image)(target));
     return;
     case 58:
     this.btnNumber1 = ((System.Windows.Controls.Button)(target));
     
     #line 165 "..\..\..\SumaSP.xaml"
     this.btnNumber1.Click += new System.Windows.RoutedEventHandler(this.btnNumber1_Click);
     
     #line default
     #line hidden
     return;
     case 59:
     this.btnNumber2 = ((System.Windows.Controls.Button)(target));
     
     #line 173 "..\..\..\SumaSP.xaml"
     this.btnNumber2.Click += new System.Windows.RoutedEventHandler(this.btnNumber2_Click);
     
     #line default
     #line hidden
     return;
     case 60:
     this.btnNumber3 = ((System.Windows.Controls.Button)(target));
     
     #line 181 "..\..\..\SumaSP.xaml"
     this.btnNumber3.Click += new System.Windows.RoutedEventHandler(this.btnNumber3_Click);
     
     #line default
     #line hidden
     return;
     case 61:
     this.btnNumber4 = ((System.Windows.Controls.Button)(target));
     
     #line 189 "..\..\..\SumaSP.xaml"
     this.btnNumber4.Click += new System.Windows.RoutedEventHandler(this.btnNumber4_Click);
     
     #line default
     #line hidden
     return;
     case 62:
     this.btnNumber5 = ((System.Windows.Controls.Button)(target));
     
     #line 197 "..\..\..\SumaSP.xaml"
     this.btnNumber5.Click += new System.Windows.RoutedEventHandler(this.btnNumber5_Click);
     
     #line default
     #line hidden
     return;
     case 63:
     this.btnNumber6 = ((System.Windows.Controls.Button)(target));
     
     #line 205 "..\..\..\SumaSP.xaml"
     this.btnNumber6.Click += new System.Windows.RoutedEventHandler(this.btnNumber6_Click);
     
     #line default
     #line hidden
     return;
     case 64:
     this.btnNumber7 = ((System.Windows.Controls.Button)(target));
     
     #line 213 "..\..\..\SumaSP.xaml"
     this.btnNumber7.Click += new System.Windows.RoutedEventHandler(this.btnNumber7_Click);
     
     #line default
     #line hidden
     return;
     case 65:
     this.btnNumber8 = ((System.Windows.Controls.Button)(target));
     
     #line 221 "..\..\..\SumaSP.xaml"
     this.btnNumber8.Click += new System.Windows.RoutedEventHandler(this.btnNumber8_Click);
     
     #line default
     #line hidden
     return;
     case 66:
     this.btnNumber9 = ((System.Windows.Controls.Button)(target));
     
     #line 229 "..\..\..\SumaSP.xaml"
     this.btnNumber9.Click += new System.Windows.RoutedEventHandler(this.btnNumber9_Click);
     
     #line default
     #line hidden
     return;
     case 67:
     this.btnNumber0 = ((System.Windows.Controls.Button)(target));
     
     #line 237 "..\..\..\SumaSP.xaml"
     this.btnNumber0.Click += new System.Windows.RoutedEventHandler(this.btnNumber0_Click);
     
     #line default
     #line hidden
     return;
     case 68:
     this.btnSuma = ((System.Windows.Controls.Button)(target));
     
     #line 245 "..\..\..\SumaSP.xaml"
     this.btnSuma.Click += new System.Windows.RoutedEventHandler(this.btnResultado_Click_1);
     
     #line default
     #line hidden
     return;
     case 69:
     this.btnAceptar_correcto = ((System.Windows.Controls.Button)(target));
     
     #line 253 "..\..\..\SumaSP.xaml"
     this.btnAceptar_correcto.Click += new System.Windows.RoutedEventHandler(this.btnAceptar_Click);
     
     #line default
     #line hidden
     return;
     case 70:
     this.bttLimpiarSuma = ((System.Windows.Controls.Button)(target));
     
     #line 255 "..\..\..\SumaSP.xaml"
     this.bttLimpiarSuma.Click += new System.Windows.RoutedEventHandler(this.btnLimpiarSuma_Click_1);
     
     #line default
     #line hidden
     return;
     case 71:
     this.lblRandomNumber = ((System.Windows.Controls.Label)(target));
     return;
     case 72:
     this.txtResultado = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 73:
     this.btnAceptar_incorrecto = ((System.Windows.Controls.Button)(target));
     
     #line 268 "..\..\..\SumaSP.xaml"
     this.btnAceptar_incorrecto.Click += new System.Windows.RoutedEventHandler(this.btnAceptar_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.button9 = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.button10 = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.button11 = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.button12 = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 8:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 9:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 10:
                this.button4 = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\..\MainWindow.xaml"
                this.button4.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 11:
                this.button5 = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\..\MainWindow.xaml"
                this.button5.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 12:
                this.button6 = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\..\MainWindow.xaml"
                this.button6.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 13:
                this.button7 = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\MainWindow.xaml"
                this.button7.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 14:
                this.button8 = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\..\MainWindow.xaml"
                this.button8.Click += new System.Windows.RoutedEventHandler(this.arrastrarCuadro);

            #line default
            #line hidden
                return;

            case 15:
                this.kinectButton = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
                return;

            case 16:
                this.videoStream = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.theGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.kinectButton = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 3:
     this.toggleControls = ((System.Windows.Controls.Button)(target));
     
     #line 19 "..\..\..\MainWindow.xaml"
     this.toggleControls.Click += new System.Windows.RoutedEventHandler(this.toggleControls_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 31 "..\..\..\MainWindow.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.button4 = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.button5 = ((System.Windows.Controls.Button)(target));
     
     #line 39 "..\..\..\MainWindow.xaml"
     this.button5.Click += new System.Windows.RoutedEventHandler(this.button5_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.buttonExit = ((System.Windows.Controls.Button)(target));
     
     #line 43 "..\..\..\MainWindow.xaml"
     this.buttonExit.Click += new System.Windows.RoutedEventHandler(this.buttonExit_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.videoImage = ((System.Windows.Controls.Image)(target));
     return;
     case 11:
     this.videoTextTip = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 12:
     this.depthImage = ((System.Windows.Controls.Image)(target));
     return;
     case 13:
     this.depthTextTip = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 14:
     this.skeletonCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 15:
     this.skeletonTextTip = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.gestureControls = ((System.Windows.Controls.Expander)(target));
     return;
     case 17:
     this.dtwRead = ((System.Windows.Controls.Button)(target));
     
     #line 74 "..\..\..\MainWindow.xaml"
     this.dtwRead.Click += new System.Windows.RoutedEventHandler(this.DtwReadClick);
     
     #line default
     #line hidden
     return;
     case 18:
     this.dtwCapture = ((System.Windows.Controls.Button)(target));
     
     #line 75 "..\..\..\MainWindow.xaml"
     this.dtwCapture.Click += new System.Windows.RoutedEventHandler(this.DtwCaptureClick);
     
     #line default
     #line hidden
     return;
     case 19:
     this.dtwStore = ((System.Windows.Controls.Button)(target));
     
     #line 76 "..\..\..\MainWindow.xaml"
     this.dtwStore.Click += new System.Windows.RoutedEventHandler(this.DtwStoreClick);
     
     #line default
     #line hidden
     return;
     case 20:
     this.dtwLoadFile = ((System.Windows.Controls.Button)(target));
     
     #line 77 "..\..\..\MainWindow.xaml"
     this.dtwLoadFile.Click += new System.Windows.RoutedEventHandler(this.DtwLoadFile);
     
     #line default
     #line hidden
     return;
     case 21:
     this.dtwSaveToFile = ((System.Windows.Controls.Button)(target));
     
     #line 78 "..\..\..\MainWindow.xaml"
     this.dtwSaveToFile.Click += new System.Windows.RoutedEventHandler(this.DtwSaveToFile);
     
     #line default
     #line hidden
     return;
     case 22:
     this.dtwShowGestureTest = ((System.Windows.Controls.Button)(target));
     
     #line 79 "..\..\..\MainWindow.xaml"
     this.dtwShowGestureTest.Click += new System.Windows.RoutedEventHandler(this.DtwShowGestureText);
     
     #line default
     #line hidden
     return;
     case 23:
     this.gestureList = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 24:
     this.results = ((System.Windows.Controls.TextBox)(target));
     return;
     case 25:
     this.currentBufferFrame = ((System.Windows.Controls.TextBox)(target));
     return;
     case 26:
     this.frameRate = ((System.Windows.Controls.TextBox)(target));
     return;
     case 27:
     this.dtwTextOutput = ((System.Windows.Controls.TextBox)(target));
     return;
     case 28:
     this.status = ((System.Windows.Controls.TextBox)(target));
     return;
     case 29:
     this.videoMedia = ((System.Windows.Controls.MediaElement)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 16
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 3 "..\..\..\MainWindow.xaml"
     ((KinectingTheDotsUserControl.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.principal = ((System.Windows.Controls.Image)(target));
     return;
     case 3:
     this.titulo = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.seq = ((System.Windows.Controls.Image)(target));
     return;
     case 5:
     this.bolas = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     this.prox = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     this.limpa = ((System.Windows.Controls.Image)(target));
     return;
     case 8:
     this.reinicia = ((System.Windows.Controls.Image)(target));
     return;
     case 9:
     this.vermelho = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 10:
     this.verde = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 11:
     this.azul = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 12:
     this.marrom = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 13:
     this.roxo = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 14:
     this.rosa = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 15:
     this.azulescuro = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 16:
     this.amarelo = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 17:
     this.verifica = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 18:
     this.limpar = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 19:
     this.reiniciar = ((Coding4Fun.Kinect.Wpf.Controls.HoverButton)(target));
     return;
     case 20:
     this.senha1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 21:
     this.senha2 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 22:
     this.senha3 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 23:
     this.senha4 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 24:
     this.e1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 25:
     this.e2 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 26:
     this.e3 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 27:
     this.e4 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 28:
     this.e5 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 29:
     this.e6 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 30:
     this.e7 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 31:
     this.e8 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 32:
     this.e9 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 33:
     this.e10 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 34:
     this.e11 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 35:
     this.e12 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 36:
     this.e13 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 37:
     this.e14 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 38:
     this.e15 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 39:
     this.e16 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 40:
     this.e17 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 41:
     this.e18 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 42:
     this.e19 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 43:
     this.e20 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 44:
     this.e21 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 45:
     this.e22 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 46:
     this.e23 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 47:
     this.e24 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 48:
     this.e25 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 49:
     this.e26 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 50:
     this.e27 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 51:
     this.e28 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 52:
     this.e29 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 53:
     this.e30 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 54:
     this.e31 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 55:
     this.e32 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 56:
     this.e33 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 57:
     this.e34 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 58:
     this.e35 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 59:
     this.e36 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 60:
     this.e37 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 61:
     this.e38 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 62:
     this.e39 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 63:
     this.e40 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 64:
     this.t1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 65:
     this.t2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 66:
     this.t3 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 67:
     this.t4 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 68:
     this.t5 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 69:
     this.t6 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 70:
     this.t7 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 71:
     this.t8 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 72:
     this.t9 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 73:
     this.t10 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 74:
     this.t11 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 75:
     this.t12 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 76:
     this.t13 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 77:
     this.t14 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 78:
     this.t15 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 79:
     this.t16 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 80:
     this.t17 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 81:
     this.t18 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 82:
     this.t19 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 83:
     this.t20 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 84:
     this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 85:
     this.RightHand = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 86:
     this.videoImage = ((System.Windows.Controls.Image)(target));
     return;
     case 87:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 17
0
 public void IsBtnHoverVisible(HoverButton name)
 {
     name.Visibility = Visibility.Visible;
 }
Ejemplo n.º 18
0
 public void IsBtnHoverCollapsed(HoverButton name)
 {
     name.Visibility = Visibility.Collapsed;
 }
Ejemplo n.º 19
0
        /// <summary>
        /// A callback method for when the page is unloaded.
        /// Remove's event handlers from the speech and motion modules.
        /// Reset's all of the referrences.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void MainWindow_Unloaded(object sender, RoutedEventArgs e)
        {
            buttons = new List<Button>();
            liveVideo = null;
            kinectLeft = null;
            kinectRight = null;

            //SpeechEngine.getInstance().removeSpeechRecognized(this.SpeechRecognized);
            //SpeechEngine.getInstance().removeSpeechRejected(this.SpeechRejected);

            MotionEngine.getInstance().removeHandMotion(KinectPage.OnButtonLocationChanged);
            //MotionEngine.getInstance().removeVideoCapture(this.runtime_VideoFrameReady);
        }