private void saveFace_Click(object sender, RoutedEventArgs e)
 {
     FaceTrackingViewer faceTracker = new FaceTrackingViewer();
     faceTracker.saveface = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\MainWindow.xaml"
     ((KinectVision360.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded_1);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((KinectVision360.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing_1);
     
     #line default
     #line hidden
     return;
     case 2:
     this.mainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.scrollText = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 4:
     this.textOut = ((System.Windows.Controls.TextBox)(target));
     
     #line 38 "..\..\MainWindow.xaml"
     this.textOut.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textOut_TextChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.depthimage = ((System.Windows.Controls.Image)(target));
     return;
     case 6:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.colorimage = ((System.Windows.Controls.Image)(target));
     return;
     case 8:
     this.faceTrackingViewer = ((KinectVision360.FaceTrackingViewer)(target));
     return;
     case 9:
     this.skeletonimage = ((System.Windows.Controls.Image)(target));
     return;
     case 10:
     this.depthimage2 = ((System.Windows.Controls.Image)(target));
     return;
     case 11:
     this.colorimage2 = ((System.Windows.Controls.Image)(target));
     return;
     case 12:
     this.depthimage3 = ((System.Windows.Controls.Image)(target));
     return;
     case 13:
     this.colorimage3 = ((System.Windows.Controls.Image)(target));
     return;
     case 14:
     this.image2 = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.depthVal1 = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.KinectLogo = ((System.Windows.Controls.Image)(target));
     return;
     case 17:
     this.stack1 = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 18:
     this.kinect_status = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.stack2 = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 20:
     this.checkIR1Mode = ((System.Windows.Controls.CheckBox)(target));
     
     #line 72 "..\..\MainWindow.xaml"
     this.checkIR1Mode.Checked += new System.Windows.RoutedEventHandler(this.SwitchRGBtoIR1);
     
     #line default
     #line hidden
     
     #line 72 "..\..\MainWindow.xaml"
     this.checkIR1Mode.Unchecked += new System.Windows.RoutedEventHandler(this.SwitchRGBtoIR1);
     
     #line default
     #line hidden
     return;
     case 21:
     this.checkIR2Mode = ((System.Windows.Controls.CheckBox)(target));
     
     #line 73 "..\..\MainWindow.xaml"
     this.checkIR2Mode.Checked += new System.Windows.RoutedEventHandler(this.SwitchRGBtoIR2);
     
     #line default
     #line hidden
     
     #line 73 "..\..\MainWindow.xaml"
     this.checkIR2Mode.Unchecked += new System.Windows.RoutedEventHandler(this.SwitchRGBtoIR2);
     
     #line default
     #line hidden
     return;
     case 22:
     this.checkIR3Mode = ((System.Windows.Controls.CheckBox)(target));
     
     #line 74 "..\..\MainWindow.xaml"
     this.checkIR3Mode.Checked += new System.Windows.RoutedEventHandler(this.SwitchRGBtoIR3);
     
     #line default
     #line hidden
     
     #line 74 "..\..\MainWindow.xaml"
     this.checkIR3Mode.Unchecked += new System.Windows.RoutedEventHandler(this.SwitchRGBtoIR3);
     
     #line default
     #line hidden
     return;
     case 23:
     this.tiltSlider1 = ((System.Windows.Controls.Slider)(target));
     
     #line 79 "..\..\MainWindow.xaml"
     this.tiltSlider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.tiltSlider_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 24:
     this.tiltSlider2 = ((System.Windows.Controls.Slider)(target));
     
     #line 82 "..\..\MainWindow.xaml"
     this.tiltSlider2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.tiltSlider2_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 25:
     this.tiltSlider3 = ((System.Windows.Controls.Slider)(target));
     
     #line 85 "..\..\MainWindow.xaml"
     this.tiltSlider3.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.tiltSlider3_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 26:
     this.depthSlider1 = ((System.Windows.Controls.Slider)(target));
     
     #line 88 "..\..\MainWindow.xaml"
     this.depthSlider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.depthSlider1_ValueChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\MainWindow.xaml"
     ((KinectVision360.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded_1);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((KinectVision360.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing_1);
     
     #line default
     #line hidden
     return;
     case 2:
     this.tabctrl = ((System.Windows.Controls.TabControl)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this.tabctrl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabctrl_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.tab1 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 4:
     this.mainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.MainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     this.colorimage = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     this.faceTrackingViewer = ((KinectVision360.FaceTrackingViewer)(target));
     return;
     case 8:
     this.MainGrid2 = ((System.Windows.Controls.Grid)(target));
     return;
     case 9:
     this.colorimage2 = ((System.Windows.Controls.Image)(target));
     return;
     case 10:
     this.faceTrackingViewer2 = ((KinectVision360.FaceTrackingViewer)(target));
     return;
     case 11:
     this.MainGrid3 = ((System.Windows.Controls.Grid)(target));
     return;
     case 12:
     this.colorimage3 = ((System.Windows.Controls.Image)(target));
     return;
     case 13:
     this.faceTrackingViewer3 = ((KinectVision360.FaceTrackingViewer)(target));
     return;
     case 14:
     this.kinectlogo = ((System.Windows.Controls.Image)(target));
     return;
     case 15:
     this.runtime = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.pcount_tot = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.saveFace = ((System.Windows.Controls.Button)(target));
     
     #line 55 "..\..\MainWindow.xaml"
     this.saveFace.Click += new System.Windows.RoutedEventHandler(this.saveFace_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.pcount1 = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.pcount2 = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.pcount3 = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.tab2 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 22:
     this.depthimage = ((System.Windows.Controls.Image)(target));
     return;
     case 23:
     this.depthimage2 = ((System.Windows.Controls.Image)(target));
     return;
     case 24:
     this.depthimage3 = ((System.Windows.Controls.Image)(target));
     return;
     case 25:
     this.skeletonimage = ((System.Windows.Controls.Image)(target));
     return;
     case 26:
     this.skeletonimage2 = ((System.Windows.Controls.Image)(target));
     return;
     case 27:
     this.skeletonimage3 = ((System.Windows.Controls.Image)(target));
     return;
     case 28:
     this.kinectlogo2 = ((System.Windows.Controls.Image)(target));
     return;
     case 29:
     this.pcount_tot_depth = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.pcount1_depth = ((System.Windows.Controls.Label)(target));
     return;
     case 31:
     this.pcount2_depth = ((System.Windows.Controls.Label)(target));
     return;
     case 32:
     this.pcount3_depth = ((System.Windows.Controls.Label)(target));
     return;
     case 33:
     this.tab3 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 34:
     this.kinect1Tracker = ((System.Windows.Controls.Grid)(target));
     return;
     case 35:
     this.UserStateVisualizer = ((KinectVision360.AdaptiveZoneVisualizer)(target));
     return;
     case 36:
     this.kinect2Tracker = ((System.Windows.Controls.Grid)(target));
     return;
     case 37:
     this.UserStateVisualizer2 = ((KinectVision360.AdaptiveZoneVisualizer)(target));
     return;
     case 38:
     this.kinect3Tracker = ((System.Windows.Controls.Grid)(target));
     return;
     case 39:
     this.UserStateVisualizer3 = ((KinectVision360.AdaptiveZoneVisualizer)(target));
     return;
     case 40:
     this.KinectLogoField = ((System.Windows.Controls.Image)(target));
     return;
     case 41:
     this.pcount_tot_Field = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.pcount1_Field = ((System.Windows.Controls.Label)(target));
     return;
     case 43:
     this.pcount2_Field = ((System.Windows.Controls.Label)(target));
     return;
     case 44:
     this.pcount3_Field = ((System.Windows.Controls.Label)(target));
     return;
     case 45:
     this.SettingsControl = ((KinectVision360.SettingsControl)(target));
     return;
     case 46:
     this.scrollText = ((System.Windows.Controls.ScrollViewer)(target));
     return;
     case 47:
     this.textOut = ((System.Windows.Controls.TextBox)(target));
     
     #line 142 "..\..\MainWindow.xaml"
     this.textOut.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textOut_TextChanged);
     
     #line default
     #line hidden
     return;
     case 48:
     this.stack1 = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 49:
     this.kinect_status = ((System.Windows.Controls.Label)(target));
     return;
     case 50:
     this.stack2 = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 51:
     this.tiltSlider1 = ((System.Windows.Controls.Slider)(target));
     
     #line 152 "..\..\MainWindow.xaml"
     this.tiltSlider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.tiltSlider_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 52:
     this.tiltSlider2 = ((System.Windows.Controls.Slider)(target));
     
     #line 155 "..\..\MainWindow.xaml"
     this.tiltSlider2.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.tiltSlider2_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 53:
     this.tiltSlider3 = ((System.Windows.Controls.Slider)(target));
     
     #line 158 "..\..\MainWindow.xaml"
     this.tiltSlider3.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.tiltSlider3_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 54:
     this.depthSlider1 = ((System.Windows.Controls.Slider)(target));
     
     #line 161 "..\..\MainWindow.xaml"
     this.depthSlider1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.depthSlider1_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 55:
     this.CountResetBtn = ((System.Windows.Controls.Button)(target));
     
     #line 162 "..\..\MainWindow.xaml"
     this.CountResetBtn.Click += new System.Windows.RoutedEventHandler(this.ResetAllCount);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }