KinectSkeletonViewer
상속: Microsoft.Samples.Kinect.WpfViewers.KinectViewer, System.Windows.Markup.IComponentConnector
예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\KinectWindow.xaml"
                ((KinectFitness.KinectWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));

            #line 17 "..\..\..\KinectWindow.xaml"
                this.kinectSkeletonViewer1.Unloaded += new System.Windows.RoutedEventHandler(this.kinectSkeletonViewer1_Unloaded);

            #line default
            #line hidden
                return;

            case 3:
                this.MediaPlayer = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 4:
                this.rightEllipse = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 5:
                this.leftEllipse = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

            #line 22 "..\..\..\KinectWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

            case 8:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.MediaPlayer_Copy = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\MainWindow.xaml"
                ((CameraFundamentals.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 5 "..\..\..\MainWindow.xaml"
                ((CameraFundamentals.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

            case 3:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;

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

            #line 12 "..\..\..\MainWindow.xaml"
                this.Record.Click += new System.Windows.RoutedEventHandler(this.Record_Click);

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\..\MainWindow.xaml"
                this.Stop.Click += new System.Windows.RoutedEventHandler(this.Stop_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #3
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.Settings = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.status = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.colorPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.colorViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
                return;

            case 6:
                this.KinectSkeletonViewerOnColor = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;

            case 7:
                this.kinectAudioViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectAudioViewer)(target));
                return;

            case 8:
                this.depthPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.KinectDepthViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectDepthViewer)(target));
                return;

            case 10:
                this.KinectSkeletonViewerOnDepth = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\RecordWindow.xaml"
                ((KinectFitness.RecordWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #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.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

            case 5:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;

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

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

            #line 14 "..\..\..\RecordWindow.xaml"
                this.recordOption.Click += new System.Windows.RoutedEventHandler(this.recordOption_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #5
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 6 "..\..\..\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.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

            case 6:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((cs160_serialization.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((cs160_serialization.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.contentContainer = ((System.Windows.Controls.Canvas)(target));
     return;
     case 3:
     this.songMediaElement = ((System.Windows.Controls.MediaElement)(target));
     return;
     case 4:
     this.videoPlaybackCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 5:
     this.kinectSkeletonViewerCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 6:
     this.kinectSensorChooser = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 7:
     this.KinectSkeletonViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #7
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 6 "..\..\..\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.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 5:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 6:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #8
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 5 "..\..\..\LocalRepository.xaml"
     ((WpfApplication1.LocalRepository)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.image1 = ((System.Windows.Controls.Image)(target));
     
     #line 15 "..\..\..\LocalRepository.xaml"
     this.image1.ImageFailed += new System.EventHandler<System.Windows.ExceptionRoutedEventArgs>(this.image1_ImageFailed);
     
     #line default
     #line hidden
     return;
     case 3:
     this.image2 = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.image3 = ((System.Windows.Controls.Image)(target));
     return;
     case 5:
     this.image4 = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     this.image5 = ((System.Windows.Controls.Image)(target));
     
     #line 19 "..\..\..\LocalRepository.xaml"
     this.image5.ImageFailed += new System.EventHandler<System.Windows.ExceptionRoutedEventArgs>(this.image5_ImageFailed);
     
     #line default
     #line hidden
     return;
     case 7:
     this.image6 = ((System.Windows.Controls.Image)(target));
     return;
     case 8:
     this.Files = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.Status = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.StatusText = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.kinectColorViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 12:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 13:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 14:
     this.inkCanvas = ((System.Windows.Controls.InkCanvas)(target));
     
     #line 31 "..\..\..\LocalRepository.xaml"
     this.inkCanvas.Gesture += new System.Windows.Controls.InkCanvasGestureEventHandler(this.inkCanvas_Gesture_1);
     
     #line default
     #line hidden
     return;
     case 15:
     this.rightEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 16:
     this.imageTrial = ((System.Windows.Controls.Image)(target));
     
     #line 33 "..\..\..\LocalRepository.xaml"
     this.imageTrial.ImageFailed += new System.EventHandler<System.Windows.ExceptionRoutedEventArgs>(this.image7_ImageFailed);
     
     #line default
     #line hidden
     return;
     case 17:
     this.image7 = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\RecordWindow.xaml"
                ((KinectFitness.RecordWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

            case 3:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));

            #line 10 "..\..\..\RecordWindow.xaml"
                this.kinectSkeletonViewer1.Unloaded += new System.Windows.RoutedEventHandler(this.kinectSkeletonViewer1_Unloaded);

            #line default
            #line hidden
                return;

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

            #line 11 "..\..\..\RecordWindow.xaml"
                this.recordButton.AddHandler(System.Windows.Input.Mouse.MouseUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.Record_Button));

            #line default
            #line hidden
                return;

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

            case 6:
                this.SaveFileAs = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.InputTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 28 "..\..\..\RecordWindow.xaml"
                this.YesButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\..\RecordWindow.xaml"
                this.NoButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #10
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.videoImage = ((System.Windows.Controls.Image)(target));
     return;
     case 2:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 3:
     this.ellipseLeftHand = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 4:
     this.ellipseRightHand = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 5:
     this.ellipsehead = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 6:
     this.ellipseLeftFoot = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 7:
     this.ellipseRightFoot = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 8:
     this.ellipseRightShoulder = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 9:
     this.ellipseLeftShoulder = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 10:
     this.up = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\..\MainWindow.xaml"
     this.up.Click += new System.Windows.RoutedEventHandler(this.up_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.bzero = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\..\MainWindow.xaml"
     this.bzero.Click += new System.Windows.RoutedEventHandler(this.bzero_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.down = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\..\MainWindow.xaml"
     this.down.Click += new System.Windows.RoutedEventHandler(this.down_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.Gesture_test = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.AngleTxt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 15:
     this.L__Hand__X = ((System.Windows.Controls.TextBox)(target));
     return;
     case 16:
     this.L__Hand__Y = ((System.Windows.Controls.TextBox)(target));
     return;
     case 17:
     this.R__Hand__X = ((System.Windows.Controls.TextBox)(target));
     return;
     case 18:
     this.R__Hand__Y = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.L__Foot__X = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.L__Foot__Y = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.R__Foot__X = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.R__Foot__Y = ((System.Windows.Controls.TextBox)(target));
     return;
     case 23:
     this.Head__X = ((System.Windows.Controls.TextBox)(target));
     return;
     case 24:
     this.Head__Y = ((System.Windows.Controls.TextBox)(target));
     return;
     case 25:
     this.L__Shoulder__X = ((System.Windows.Controls.TextBox)(target));
     return;
     case 26:
     this.R__Shoulder__X = ((System.Windows.Controls.TextBox)(target));
     return;
     case 27:
     this.L__Shoulder__Y = ((System.Windows.Controls.TextBox)(target));
     return;
     case 28:
     this.R__Shoulder__Y = ((System.Windows.Controls.TextBox)(target));
     return;
     case 29:
     this.R_Hand_Angle = ((System.Windows.Controls.TextBox)(target));
     return;
     case 30:
     this.L_Hand_Angle = ((System.Windows.Controls.TextBox)(target));
     return;
     case 31:
     this.Zigbee_go = ((System.Windows.Controls.Button)(target));
     
     #line 63 "..\..\..\MainWindow.xaml"
     this.Zigbee_go.Click += new System.Windows.RoutedEventHandler(this.Zigbee_go_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.Zigbee = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 33:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\..\MainWindow.xaml"
                ((Play_v_6.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 4 "..\..\..\MainWindow.xaml"
                ((Play_v_6.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.tblHeight = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.kinectDepthViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectDepthViewer)(target));
                return;

            case 4:
                this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

            case 5:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
                return;

            case 6:
                this.HipCenter = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 7:
                this.Spine = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 8:
                this.ShoulderCenter = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 9:
                this.Head = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 10:
                this.ShoulderLeft = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 11:
                this.ElbowLeft = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 12:
                this.WristLeft = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 13:
                this.HandLeft = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 14:
                this.ShoulderRight = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 15:
                this.ElbowRight = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 16:
                this.WristRight = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 17:
                this.HandRight = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 18:
                this.HipLeft = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 19:
                this.KneeLeft = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

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

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

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

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

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

            case 26:
                this.image1 = ((System.Windows.Controls.Image)(target));

            #line 32 "..\..\..\MainWindow.xaml"
                this.image1.ImageFailed += new System.EventHandler <System.Windows.ExceptionRoutedEventArgs>(this.image1_ImageFailed);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 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 6 "..\..\..\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.righthandellipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 5:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 6:
     this.leftfootellipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 7:
     this.rightfootellipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 8:
     this.lefthandellipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 9:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 10:
     this.ylw2 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 11:
     this.ylw1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 12:
     this.red1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 13:
     this.red2 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 14:
     this.blck1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 15:
     this.blck2 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 16:
     this.blck3 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 17:
     this.blck4 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 18:
     this.grn1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 19:
     this.grn2 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 20:
     this.roundnumber = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\KinectWindow.xaml"
                ((KinectFitness.KinectWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.background = ((System.Windows.Media.GradientStop)(target));
                return;

            case 3:
                this.MainCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 5:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));

            #line 32 "..\..\..\KinectWindow.xaml"
                this.kinectSkeletonViewer1.Unloaded += new System.Windows.RoutedEventHandler(this.kinectSkeletonViewer1_Unloaded);

            #line default
            #line hidden
                return;

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

            case 7:
                this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

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

            case 9:
                this.leftHand = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 37 "..\..\..\KinectWindow.xaml"
                this.btnUp.Click += new System.Windows.RoutedEventHandler(this.motorUp_Click);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\..\KinectWindow.xaml"
                this.btnDown.Click += new System.Windows.RoutedEventHandler(this.motorDown_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.points = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.playicon = ((System.Windows.Controls.Image)(target));

            #line 40 "..\..\..\KinectWindow.xaml"
                this.playicon.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.hoverPlay));

            #line default
            #line hidden

            #line 40 "..\..\..\KinectWindow.xaml"
                this.playicon.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.leavePlay));

            #line default
            #line hidden

            #line 40 "..\..\..\KinectWindow.xaml"
                this.playicon.AddHandler(System.Windows.Input.Mouse.MouseUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.btnPlay_Click));

            #line default
            #line hidden
                return;

            case 14:
                this.hoverplayicon = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.mediaBackground = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 16:
                this.rectanglePlayer = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 17:
                this.pauseicon = ((System.Windows.Controls.Image)(target));
                return;

            case 18:
                this.hoverpauseicon = ((System.Windows.Controls.Image)(target));
                return;

            case 19:
                this.heartgauge = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this.heartarrow = ((System.Windows.Controls.Image)(target));
                return;

            case 21:
                this.AnimatedRotateTransform = ((System.Windows.Media.RotateTransform)(target));
                return;

            case 22:
                this.suggestionBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.kinectDisplay = ((System.Windows.Controls.Image)(target));
                return;

            case 24:
                this.viewButton = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\..\KinectWindow.xaml"
                this.viewButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.replayOption = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\..\KinectWindow.xaml"
                this.replayOption.Click += new System.Windows.RoutedEventHandler(this.replayButton_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.seatedMode = ((System.Windows.Controls.CheckBox)(target));

            #line 58 "..\..\..\KinectWindow.xaml"
                this.seatedMode.Checked += new System.Windows.RoutedEventHandler(this.seatedMode_Checked_1);

            #line default
            #line hidden

            #line 58 "..\..\..\KinectWindow.xaml"
                this.seatedMode.Unchecked += new System.Windows.RoutedEventHandler(this.seatedMode_Unchecked_1);

            #line default
            #line hidden
                return;

            case 27:
                this.kinectDisplay2 = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #14
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((IPA2.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((IPA2.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.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 4:
     this.kinectColorViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 5:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     
     #line 9 "..\..\..\MainWindow.xaml"
     this.kinectSkeletonViewer1.Loaded += new System.Windows.RoutedEventHandler(this.kinectSkeletonViewer1_Loaded);
     
     #line default
     #line hidden
     return;
     case 6:
     this.kinectColorViewer2 = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 7:
     this.kinectDepthViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectDepthViewer)(target));
     return;
     case 8:
     this.FirstContent = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.FirstLabel = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #15
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((cs169_Pomagranit.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 5 "..\..\..\MainWindow.xaml"
     ((cs169_Pomagranit.MainWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.PoseSelectCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 3:
     this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 4:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 5:
     this.poseSkeletonViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 6:
     this.helpButton = ((System.Windows.Controls.Button)(target));
     return;
     case 7:
     this.poseVideoPlayer = ((System.Windows.Controls.MediaElement)(target));
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.poseVideoPlayer.MediaEnded += new System.Windows.RoutedEventHandler(this.poseVideoPlayer_MediaEnded);
     
     #line default
     #line hidden
     return;
     case 8:
     this.ms_poseNameText = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.poseSlot1 = ((System.Windows.Controls.Image)(target));
     return;
     case 10:
     this.poseSlot2 = ((System.Windows.Controls.Image)(target));
     return;
     case 11:
     this.poseSlot3 = ((System.Windows.Controls.Image)(target));
     return;
     case 12:
     this.poseSlot4 = ((System.Windows.Controls.Image)(target));
     return;
     case 13:
     this.poseSlot5 = ((System.Windows.Controls.Image)(target));
     return;
     case 14:
     this.poseSlot6 = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.poseSlot7 = ((System.Windows.Controls.Image)(target));
     return;
     case 16:
     this.poseSelectButton = ((System.Windows.Controls.Button)(target));
     return;
     case 17:
     this.playlistButton = ((System.Windows.Controls.Button)(target));
     return;
     case 18:
     this.poseVideoTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 19:
     this.moveSlot1Border = ((System.Windows.Controls.Border)(target));
     return;
     case 20:
     this.moveSlot2Border = ((System.Windows.Controls.Border)(target));
     return;
     case 21:
     this.moveSlot3Border = ((System.Windows.Controls.Border)(target));
     return;
     case 22:
     this.focusedPoseBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 23:
     this.moveSlot5Border = ((System.Windows.Controls.Border)(target));
     return;
     case 24:
     this.moveSlot6Border = ((System.Windows.Controls.Border)(target));
     return;
     case 25:
     this.moveSlot7Border = ((System.Windows.Controls.Border)(target));
     return;
     case 26:
     this.noticeBox = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.handEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 28:
     this.kinectSkeletonViewer2 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 29:
     this.PL_pose1 = ((System.Windows.Controls.Image)(target));
     return;
     case 30:
     this.PL_pose2 = ((System.Windows.Controls.Image)(target));
     return;
     case 31:
     this.PL_firstPose = ((System.Windows.Controls.Image)(target));
     return;
     case 32:
     this.PL_secondPose = ((System.Windows.Controls.Image)(target));
     return;
     case 33:
     this.PL_thirdPose = ((System.Windows.Controls.Image)(target));
     return;
     case 34:
     this.PL_fourthPose = ((System.Windows.Controls.Image)(target));
     return;
     case 35:
     this.PL_fifthPose = ((System.Windows.Controls.Image)(target));
     return;
     case 36:
     this.PL_sixthPose = ((System.Windows.Controls.Image)(target));
     return;
     case 37:
     this.PL_pose3 = ((System.Windows.Controls.Image)(target));
     return;
     case 38:
     this.PL_pose4 = ((System.Windows.Controls.Image)(target));
     return;
     case 39:
     this.plDoneButton = ((System.Windows.Controls.Button)(target));
     return;
     case 40:
     this.focusedElementBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 41:
     this.helpDisplayBox = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 42:
     this.playlistTextblock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 43:
     this.playlistTextblock2 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 44:
     this.logo = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #16
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\..\KinectChooser.xaml"
     ((Balloon.KinectChooser)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 7 "..\..\..\KinectChooser.xaml"
     ((Balloon.KinectChooser)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.kinectColourViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 3:
     this.kinectSkeletonViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 4:
     this.kinectSensorChooser = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 5 "..\..\..\MainWindow.xaml"
     ((CameraFundamentals.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 5 "..\..\..\MainWindow.xaml"
     ((CameraFundamentals.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 3:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 4:
     this.Record = ((System.Windows.Controls.Button)(target));
     
     #line 12 "..\..\..\MainWindow.xaml"
     this.Record.Click += new System.Windows.RoutedEventHandler(this.Record_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.Stop = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\..\MainWindow.xaml"
     this.Stop.Click += new System.Windows.RoutedEventHandler(this.Stop_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
예제 #18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\KinectWindow.xaml"
                ((KinectFitness.KinectWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.FitnessPlayer = ((System.Windows.Controls.MediaElement)(target));

            #line 18 "..\..\..\KinectWindow.xaml"
                this.FitnessPlayer.MediaEnded += new System.Windows.RoutedEventHandler(this.videoEnd);

            #line default
            #line hidden
                return;

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

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

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

            #line 22 "..\..\..\KinectWindow.xaml"
                this.btnUp.Click += new System.Windows.RoutedEventHandler(this.motorUp_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\..\KinectWindow.xaml"
                this.btnDown.Click += new System.Windows.RoutedEventHandler(this.motorDown_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.points = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 25 "..\..\..\KinectWindow.xaml"
                this.playicon.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.hoverButton));

            #line default
            #line hidden

            #line 25 "..\..\..\KinectWindow.xaml"
                this.playicon.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.leaveButton));

            #line default
            #line hidden

            #line 25 "..\..\..\KinectWindow.xaml"
                this.playicon.AddHandler(System.Windows.Input.Mouse.MouseUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.btnPlay_Click));

            #line default
            #line hidden
                return;

            case 9:
                this.hoverplayicon = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.mediaBackground = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.rectanglePlayer = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 13:
                this.hoverpauseicon = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.heartgauge = ((System.Windows.Controls.Image)(target));
                return;

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

            case 16:
                this.pointsBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 17:
                this.videoProgressBar = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.rightHandProgressBar = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 19:
                this.userBackground = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 20:
                this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));

            #line 37 "..\..\..\KinectWindow.xaml"
                this.kinectSkeletonViewer1.Unloaded += new System.Windows.RoutedEventHandler(this.kinectSkeletonViewer1_Unloaded);

            #line default
            #line hidden
                return;

            case 21:
                this.backButtonHoverImg = ((System.Windows.Controls.Image)(target));
                return;

            case 22:
                this.backButtonImg = ((System.Windows.Controls.Image)(target));

            #line 39 "..\..\..\KinectWindow.xaml"
                this.backButtonImg.AddHandler(System.Windows.Input.Mouse.MouseUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.backButton_Click));

            #line default
            #line hidden
                return;

            case 23:
                this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;

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

            case 25:
                this.bigPlayIconHoverImg = ((System.Windows.Controls.Image)(target));
                return;

            case 26:
                this.bigPlayIconImg = ((System.Windows.Controls.Image)(target));

            #line 43 "..\..\..\KinectWindow.xaml"
                this.bigPlayIconImg.AddHandler(System.Windows.Input.Mouse.MouseUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.btnPlay_Click));

            #line default
            #line hidden
                return;

            case 27:
                this.statsBackground = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 28:
                this.angleStatsBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.speedStatsBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.statsTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.doneButtonImg = ((System.Windows.Controls.Image)(target));
                return;

            case 32:
                this.doneButtonHoverImg = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
 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.Settings = ((System.Windows.Controls.Expander)(target));
     return;
     case 3:
     this.status = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.colorPanel = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.colorViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 6:
     this.KinectSkeletonViewerOnColor = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 7:
     this.kinectAudioViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectAudioViewer)(target));
     return;
     case 8:
     this.depthPanel = ((System.Windows.Controls.Grid)(target));
     return;
     case 9:
     this.KinectDepthViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectDepthViewer)(target));
     return;
     case 10:
     this.KinectSkeletonViewerOnDepth = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #20
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((Project_v1._1.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((Project_v1._1.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     case 3:
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this.statusBar1 = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 5:
     this.kinectColorViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 6:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 7:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 8:
     this.grid1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 9:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.slider1 = ((System.Windows.Controls.Slider)(target));
     return;
     case 11:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.label2 = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.lblCurrentAngle = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.image2 = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.statusBar2 = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 16:
     this.label3 = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.label4 = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.stop_button = ((System.Windows.Controls.Button)(target));
     return;
     case 19:
     this.start_button = ((System.Windows.Controls.Button)(target));
     return;
     case 20:
     this.textBox1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.label5 = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.image3 = ((System.Windows.Controls.Image)(target));
     return;
     case 23:
     this.image4 = ((System.Windows.Controls.Image)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #21
0
        public MainWindow()
        {
            InitializeComponent();

            //test
            ctrOne = new StepOneControl(this);
            ctrTwo = new StepTwoControl(this) { Visibility = Visibility.Collapsed };
            ctrThree = new StepThreeControl(this) { Visibility = Visibility.Collapsed };
            ctrFour = new StepFourControl(this) { Visibility = Visibility.Collapsed };
            ctrFive = new StepFiveControl(this) { Visibility = Visibility.Collapsed };
            media.MediaEnded += (s, e) =>
            {
                media.Source = new Uri(Appconfig.MP3);
                media.Play();
            };
            this.Loaded += (s, e) =>
            {
                _logger.Debug("................启动......................");
                media.Source = new Uri(Appconfig.MP3);
                media.Play();
            };

            gestureControl.OnKinectGestureDetected += gestureControl_OnKinectGestureDetected;

            ctrOne.SceneOver += OnSceneOver;
            ctrTwo.SceneOver += OnSceneOver;
            ctrThree.SceneOver += OnSceneOver;
            ctrFour.SceneOver += OnSceneOver;
            ctrFive.SceneOver += OnSceneOver;
            ctrOne.LayoutTransform = ctrTwo.LayoutTransform = ctrThree.LayoutTransform = ctrFour.LayoutTransform = ctrFive.LayoutTransform = this.LayoutTransform =
                new ScaleTransform(SystemParameters.PrimaryScreenWidth / 1920.0d, SystemParameters.PrimaryScreenHeight / 1080d);
            layoutGrid.Children.Add(ctrOne);
            layoutGrid.Children.Add(ctrTwo);
            layoutGrid.Children.Add(ctrThree);
            layoutGrid.Children.Add(ctrFour);
            layoutGrid.Children.Add(ctrFive);

            controls.Add(ctrOne);
            controls.Add(ctrTwo);
            controls.Add(ctrThree);
            controls.Add(ctrFour);
            controls.Add(ctrFive);

            _currentControl = ctrOne;

            //显示kinect可视窗口
            string[] kv = ConfigurationManager.AppSettings["SkeletonInfo"].Split(',');
            double kWidth = Convert.ToDouble(kv[0]);
            double kHeight = Convert.ToDouble(kv[1]);
            double kLeft = Convert.ToDouble(kv[2]);
            double kTop = Convert.ToDouble(kv[3]);
            double kAlpha = Convert.ToDouble(kv[4]);

            KinectColorViewer kc2 = new KinectColorViewer();
            kc2.Opacity = kAlpha;
            kc2.Width = kWidth;
            kc2.Height = kHeight;
            Canvas.SetLeft(kc2, kLeft);
            Canvas.SetTop(kc2, kTop);
            kc2.KinectSensorManager = gestureControl.KinectSensorManager;
            this.root.Children.Add(kc2);

            KinectSkeletonViewer ks = new KinectSkeletonViewer();
            ks.Opacity = kAlpha;
            ks.Width = kWidth;
            ks.Height = kHeight;
            Canvas.SetLeft(ks, kLeft);
            Canvas.SetTop(ks, kTop);
            ks.KinectSensorManager = gestureControl.KinectSensorManager;
            this.root.Children.Add(ks);
        }
예제 #22
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.playlistCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 2:
     this.mediaElement1 = ((System.Windows.Controls.MediaElement)(target));
     return;
     case 3:
     this.PoseVideoViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     case 4:
     this.poseVideoTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 5:
     this.helpButton = ((System.Windows.Controls.Button)(target));
     return;
     case 6:
     this.helpDisplayBox = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #23
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\MainWindow.xaml"
     ((YMCA_Detector.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 4 "..\..\MainWindow.xaml"
     ((YMCA_Detector.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 3:
     this.kinectColorViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     
     #line 7 "..\..\MainWindow.xaml"
     this.kinectColorViewer1.Loaded += new System.Windows.RoutedEventHandler(this.kinectColorViewer1_Loaded);
     
     #line default
     #line hidden
     return;
     case 4:
     this.MainCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 5:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     this.smileyHead = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     this.rightEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 8:
     this.leftEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 9:
     this.elbowleftEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 10:
     this.elbowrightEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 11:
     this.sholderleftEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 12:
     this.sholderrightEllipse = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 13:
     this.debugg = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 14:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     }
     this._contentLoaded = true;
 }
예제 #24
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((DTWGestureRecognition.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);
     
     #line default
     #line hidden
     
     #line 4 "..\..\..\MainWindow.xaml"
     ((DTWGestureRecognition.MainWindow)(target)).Closed += new System.EventHandler(this.WindowClosed);
     
     #line default
     #line hidden
     return;
     case 2:
     this.kinectSensorChooser1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     case 3:
     this.dtwCapture = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\..\MainWindow.xaml"
     this.dtwCapture.Click += new System.Windows.RoutedEventHandler(this.DtwCaptureClick);
     
     #line default
     #line hidden
     return;
     case 4:
     this.dtwLoadFile = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\..\MainWindow.xaml"
     this.dtwLoadFile.Click += new System.Windows.RoutedEventHandler(this.DtwLoadFile);
     
     #line default
     #line hidden
     return;
     case 5:
     this.dtwSaveToFile = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.dtwSaveToFile.Click += new System.Windows.RoutedEventHandler(this.DtwSaveToFile);
     
     #line default
     #line hidden
     return;
     case 6:
     this.dtwShowGestureTest = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\..\MainWindow.xaml"
     this.dtwShowGestureTest.Click += new System.Windows.RoutedEventHandler(this.DtwShowGestureText);
     
     #line default
     #line hidden
     return;
     case 7:
     this.dtwAngleUp = ((System.Windows.Controls.Button)(target));
     
     #line 26 "..\..\..\MainWindow.xaml"
     this.dtwAngleUp.Click += new System.Windows.RoutedEventHandler(this.dtwAngleUp_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.dtwAngleDown = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\..\MainWindow.xaml"
     this.dtwAngleDown.Click += new System.Windows.RoutedEventHandler(this.dtwAngleDown_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.gestureList = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 10:
     this.results = ((System.Windows.Controls.TextBox)(target));
     return;
     case 11:
     this.status = ((System.Windows.Controls.TextBox)(target));
     return;
     case 12:
     this.currentBufferFrame = ((System.Windows.Controls.TextBox)(target));
     return;
     case 13:
     this.videoImage = ((System.Windows.Controls.Image)(target));
     return;
     case 14:
     this.depthImage = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.dtwTextOutput = ((System.Windows.Controls.TextBox)(target));
     return;
     case 16:
     this.kinectSkeletonViewer1 = ((Microsoft.Samples.Kinect.WpfViewers.KinectSkeletonViewer)(target));
     return;
     }
     this._contentLoaded = true;
 }