public void Body() { Microsoft.Samples.Kinect.BodyBasics.MainWindow w2 = new Microsoft.Samples.Kinect.BodyBasics.MainWindow(); Application.Current.MainWindow = w2; w2.WindowStartupLocation = WindowStartupLocation.Manual; TopWindow.MainWindow win = Window.GetWindow(this) as TopWindow.MainWindow; w2.Num = this.UserId; w2.Left = win.Left; w2.Top = win.Top; w2.Width = win.Width; w2.Height = win.Height; w2.WindowState = win.WindowState; w2.Owner = win; win.Hide(); w2.Show(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.joint = ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)); #line 6 "..\..\MainWindow.xaml" this.joint.Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded); #line default #line hidden #line 7 "..\..\MainWindow.xaml" this.joint.Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_Closing); #line default #line hidden return; case 2: this.CompositeImage = ((System.Windows.Controls.Grid)(target)); return; case 3: this.ForegroundImage = ((System.Windows.Controls.Grid)(target)); return; case 4: this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 5: this.Foreground = ((System.Windows.Controls.Image)(target)); return; case 6: this._911 = ((System.Windows.Controls.Image)(target)); return; case 7: this.cloth = ((System.Windows.Controls.Image)(target)); return; case 8: this.foregroundswitch = ((System.Windows.Controls.ComboBox)(target)); #line 47 "..\..\MainWindow.xaml" this.foregroundswitch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged_2); #line default #line hidden return; case 9: this.propsswitch = ((System.Windows.Controls.ComboBox)(target)); #line 54 "..\..\MainWindow.xaml" this.propsswitch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged_1); #line default #line hidden return; case 10: this.backgroundswitch = ((System.Windows.Controls.ComboBox)(target)); #line 61 "..\..\MainWindow.xaml" this.backgroundswitch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged); #line default #line hidden return; case 11: this.clothswitch = ((System.Windows.Controls.ComboBox)(target)); #line 67 "..\..\MainWindow.xaml" this.clothswitch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged_3); #line default #line hidden return; } this._contentLoaded = true; }