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

            case 2:
                this.user2Level = ((CardGameClient.Digit)(target));
                return;

            case 3:
                this.turnBtn = ((CardGameClient.StyledBtn)(target));
                return;

            case 4:
                this.firstUserNick = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.twoUserNick = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.turnLabel = ((System.Windows.Controls.TextBlock)(target));

            #line 52 "..\..\..\..\Controls\inGameTopInfo.xaml"
                this.turnLabel.MouseEnter += new System.Windows.Input.MouseEventHandler(this.turnLabel_MouseEnter);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\..\Controls\CardPlace.xaml"
                ((CardGameClient.CardPlace)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.UserControl_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.GridMain = ((System.Windows.Controls.Grid)(target));

            #line 9 "..\..\..\..\Controls\CardPlace.xaml"
                this.GridMain.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Grid_MouseEnter);

            #line default
            #line hidden

            #line 9 "..\..\..\..\Controls\CardPlace.xaml"
                this.GridMain.MouseLeave += new System.Windows.Input.MouseEventHandler(this.GridMain_MouseLeave);

            #line default
            #line hidden

            #line 10 "..\..\..\..\Controls\CardPlace.xaml"
                this.GridMain.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.GridMain_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 3:
                this.borderGrid = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.CardCrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.Portrait = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.borderImg = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.AttackBar = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.AttakDig = ((CardGameClient.Digit)(target));
                return;

            case 9:
                this.DefBar = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.DefDig = ((CardGameClient.Digit)(target));
                return;

            case 11:
                this.HpBar = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.HpDig = ((CardGameClient.Digit)(target));
                return;

            case 13:
                this.dmgLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.dmgLabeladtnl = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.dmgImgEffect = ((System.Windows.Controls.Image)(target));
                return;

            case 16:
                this.InjuryEffect = ((System.Windows.Controls.Image)(target));
                return;

            case 17:
                this.InjuredToolTip = ((System.Windows.Controls.ToolTip)(target));
                return;

            case 18:
                this.sellBtn = ((CardGameClient.sellmenu)(target));
                return;
            }
            this._contentLoaded = true;
        }