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.Viewer = ((GestureTraceLibrary.SkeletonViewer)(target)); #line 12 "..\..\MainWindow.xaml" this.Viewer.Initialized += new System.EventHandler(this.Viewer_Initialized); #line default #line hidden return; case 3: this.RightHandElement = ((System.Windows.Shapes.Ellipse)(target)); return; case 4: this.LeftHandElement = ((System.Windows.Shapes.Ellipse)(target)); return; case 5: this.LeftHandScale = ((System.Windows.Media.RotateTransform)(target)); return; } this._contentLoaded = true; }
private static void KinectDeviceChanged(DependencyObject owner, DependencyPropertyChangedEventArgs e) { SkeletonViewer viewer = (SkeletonViewer)owner; if (e.OldValue != null) { ((KinectSensor)e.OldValue).SkeletonFrameReady -= viewer.KinectDevice_SkeletonFrameReady; viewer._FrameSkeletons = null; } if (e.NewValue != null) { viewer.KinectDevice = (KinectSensor)e.NewValue; viewer.KinectDevice.SkeletonFrameReady += viewer.KinectDevice_SkeletonFrameReady; viewer._FrameSkeletons = new Skeleton[viewer.KinectDevice.SkeletonStream.FrameSkeletonArrayLength]; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\MainWindow.xaml" ((Car_4.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden #line 10 "..\..\MainWindow.xaml" ((Car_4.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp); #line default #line hidden return; case 2: this.grid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.viewer = ((GestureTraceLibrary.SkeletonViewer)(target)); return; case 4: this.image = ((System.Windows.Controls.Image)(target)); return; case 5: this.titleTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.ColorImageElement = ((System.Windows.Controls.Image)(target)); return; case 7: this.EnhancedDepthImage = ((System.Windows.Controls.Image)(target)); return; case 8: this.DepthImage = ((System.Windows.Controls.Image)(target)); return; case 9: this.rightBigCircle = ((System.Windows.Shapes.Ellipse)(target)); return; case 10: this.rightSmallCircle = ((System.Windows.Shapes.Ellipse)(target)); return; case 11: this.rightTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.leftBigCircle = ((System.Windows.Shapes.Ellipse)(target)); return; case 13: this.leftSmallCircle = ((System.Windows.Shapes.Ellipse)(target)); return; case 14: this.leftTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 15: this.takePictureButton = ((GestureTraceLibrary.MagnetButton)(target)); #line 83 "..\..\MainWindow.xaml" this.takePictureButton.Click += new System.Windows.RoutedEventHandler(this.takePictureButton_Click); #line default #line hidden return; case 16: this.lightButton = ((GestureTraceLibrary.MagnetButton)(target)); return; case 17: this.modeChangedButton = ((GestureTraceLibrary.MagnetButton)(target)); #line 85 "..\..\MainWindow.xaml" this.modeChangedButton.Click += new System.Windows.RoutedEventHandler(this.modeChangedButton_Click); #line default #line hidden return; case 18: this.openVideoButton = ((GestureTraceLibrary.MagnetButton)(target)); #line 86 "..\..\MainWindow.xaml" this.openVideoButton.Click += new System.Windows.RoutedEventHandler(this.openVideoButton_Click); #line default #line hidden return; case 19: this.leftDash = ((System.Windows.Controls.Image)(target)); return; case 20: this.rightDash = ((System.Windows.Controls.Image)(target)); return; case 21: this.leftPointer = ((System.Windows.Controls.Image)(target)); return; case 22: this.leftRotateTransform = ((System.Windows.Media.RotateTransform)(target)); return; case 23: this.rightPointer = ((System.Windows.Controls.Image)(target)); return; case 24: this.rightRotateTransform = ((System.Windows.Media.RotateTransform)(target)); return; case 25: this.veRule = ((System.Windows.Controls.Image)(target)); return; case 26: this.heRule = ((System.Windows.Controls.Image)(target)); return; case 27: this.vaRectangle = ((System.Windows.Shapes.Rectangle)(target)); return; case 28: this.haRectangle = ((System.Windows.Shapes.Rectangle)(target)); return; case 29: this.schoolImage = ((System.Windows.Controls.Image)(target)); return; case 30: this.steeringWheel = ((System.Windows.Controls.Image)(target)); return; case 31: this.steerRotate = ((System.Windows.Media.RotateTransform)(target)); return; case 32: this.massageBlock = ((System.Windows.Controls.TextBlock)(target)); #line 160 "..\..\MainWindow.xaml" this.massageBlock.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.CheakWiFi); #line default #line hidden return; case 33: this.textBox = ((System.Windows.Controls.TextBox)(target)); return; case 34: this.button = ((System.Windows.Controls.Button)(target)); #line 162 "..\..\MainWindow.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 35: this.button1 = ((System.Windows.Controls.Button)(target)); #line 163 "..\..\MainWindow.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 36: this.textBox1 = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }