Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((ShapeGame.MainWindow)(target));

            #line 6 "..\..\MainWindow.xaml"
                this.mainWindow.Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                this.mainWindow.Closed += new System.EventHandler(this.WindowClosed);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                this.mainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.WindowClosing);

            #line default
            #line hidden
                return;

            case 2:
                this.playfield = ((System.Windows.Controls.Canvas)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.playfield.SizeChanged += new System.Windows.SizeChangedEventHandler(this.PlayfieldSizeChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.kinectViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
                return;

            case 4:
                this.SensorChooser = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainWindow = ((ShapeGame.MainWindow)(target));
     
     #line 6 "..\..\MainWindow.xaml"
     this.mainWindow.Loaded += new System.Windows.RoutedEventHandler(this.WindowLoaded);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     this.mainWindow.Closed += new System.EventHandler(this.WindowClosed);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     this.mainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.WindowClosing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.playfield = ((System.Windows.Controls.Canvas)(target));
     
     #line 10 "..\..\MainWindow.xaml"
     this.playfield.SizeChanged += new System.Windows.SizeChangedEventHandler(this.PlayfieldSizeChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.kinectViewer = ((Microsoft.Samples.Kinect.WpfViewers.KinectColorViewer)(target));
     return;
     case 4:
     this.SensorChooser = ((Microsoft.Samples.Kinect.WpfViewers.KinectSensorChooser)(target));
     return;
     }
     this._contentLoaded = true;
 }