예제 #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\MainWindow.xaml"
     ((GalaxyFootball.MainWindow)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDoubleClick);
     
     #line default
     #line hidden
     
     #line 6 "..\..\MainWindow.xaml"
     ((GalaxyFootball.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.PlaygroundCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 3:
     this.ballMarker = ((GalaxyFootball.UserControls.BallMarker)(target));
     return;
     case 4:
     this.playerAwayMarker1 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 5:
     this.playerAwayMarker2 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 6:
     this.playerAwayMarker3 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 7:
     this.playerAwayMarker4 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 8:
     this.playerAwayMarker5 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 9:
     this.playerAwayMarker6 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 10:
     this.playerAwayMarker7 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 11:
     this.playerAwayMarker8 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 12:
     this.playerAwayMarker9 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 13:
     this.playerAwayMarker10 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 14:
     this.playerAwayMarker11 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
     return;
     case 15:
     this.playerHomeMarker1 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 16:
     this.playerHomeMarker2 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 17:
     this.playerHomeMarker3 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 18:
     this.playerHomeMarker4 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 19:
     this.playerHomeMarker5 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 20:
     this.playerHomeMarker6 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 21:
     this.playerHomeMarker7 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 22:
     this.playerHomeMarker8 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 23:
     this.playerHomeMarker9 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 24:
     this.playerHomeMarker10 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     case 25:
     this.playerHomeMarker11 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\MainWindow.xaml"
                ((GalaxyFootball.MainWindow)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDoubleClick);

            #line default
            #line hidden

            #line 6 "..\..\MainWindow.xaml"
                ((GalaxyFootball.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

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

            case 3:
                this.ballMarker = ((GalaxyFootball.UserControls.BallMarker)(target));
                return;

            case 4:
                this.playerAwayMarker1 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 5:
                this.playerAwayMarker2 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 6:
                this.playerAwayMarker3 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 7:
                this.playerAwayMarker4 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 8:
                this.playerAwayMarker5 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 9:
                this.playerAwayMarker6 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 10:
                this.playerAwayMarker7 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 11:
                this.playerAwayMarker8 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 12:
                this.playerAwayMarker9 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 13:
                this.playerAwayMarker10 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 14:
                this.playerAwayMarker11 = ((GalaxyFootball.UserControls.PlayerMarkerBlack)(target));
                return;

            case 15:
                this.playerHomeMarker1 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 16:
                this.playerHomeMarker2 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 17:
                this.playerHomeMarker3 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 18:
                this.playerHomeMarker4 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 19:
                this.playerHomeMarker5 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 20:
                this.playerHomeMarker6 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 21:
                this.playerHomeMarker7 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 22:
                this.playerHomeMarker8 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 23:
                this.playerHomeMarker9 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 24:
                this.playerHomeMarker10 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;

            case 25:
                this.playerHomeMarker11 = ((GalaxyFootball.UserControls.PlayerMarkerRed)(target));
                return;
            }
            this._contentLoaded = true;
        }