Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LobbyWnd = ((CardGameClient.LobbyScreen)(target));

            #line 6 "..\..\..\LobbyScreen.xaml"
                this.LobbyWnd.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 6 "..\..\..\LobbyScreen.xaml"
                this.LobbyWnd.Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

            #line 6 "..\..\..\LobbyScreen.xaml"
                this.LobbyWnd.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 6 "..\..\..\LobbyScreen.xaml"
                this.LobbyWnd.ContentRendered += new System.EventHandler(this.Window_ContentRendered_1);

            #line default
            #line hidden

            #line 6 "..\..\..\LobbyScreen.xaml"
                this.LobbyWnd.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.LobbyWnd_IsVisibleChanged);

            #line default
            #line hidden
                return;

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

            case 3:
                this.findBtn = ((CardGameClient.FindButton)(target));
                return;

            case 4:
                this.NickNameLevel = ((CardGameClient.StyledTextBox)(target));
                return;

            case 5:
                this.Wins = ((CardGameClient.StyledTextBox)(target));
                return;

            case 6:
                this.Games = ((CardGameClient.StyledTextBox)(target));
                return;

            case 7:
                this.Exp = ((CardGameClient.StyledTextBox)(target));
                return;

            case 8:
                this.Rating = ((CardGameClient.StyledTextBox)(target));
                return;

            case 9:
                this.MainLobbyBackBtn = ((CardGameClient.StyledBtn)(target));
                return;

            case 10:
                this.AllCardsBtn = ((CardGameClient.StyledBtn)(target));
                return;

            case 11:
                this.ratingGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.MyCardsGrid = ((System.Windows.Controls.Grid)(target));

            #line 60 "..\..\..\LobbyScreen.xaml"
                this.MyCardsGrid.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.MyCardsGrid_IsVisibleChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.gridHeroes = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.AllCardsGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:

            #line 142 "..\..\..\LobbyScreen.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown);

            #line default
            #line hidden
                return;

            case 16:
                this.currPageLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 17:

            #line 144 "..\..\..\LobbyScreen.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown_1);

            #line default
            #line hidden
                return;

            case 18:
                this.SlotGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 19:
                this.Slot1Card = ((CardGameClient.CardPlace)(target));
                return;

            case 20:
                this.Slot2Card = ((CardGameClient.CardPlace)(target));
                return;

            case 21:
                this.Slot3Card = ((CardGameClient.CardPlace)(target));
                return;

            case 22:
                this.Slot4Card = ((CardGameClient.CardPlace)(target));
                return;

            case 23:
                this.Slot5Card = ((CardGameClient.CardPlace)(target));
                return;

            case 24:
                this.Slo6Card = ((CardGameClient.CardPlace)(target));
                return;

            case 25:
                this.Slot7Card = ((CardGameClient.CardPlace)(target));
                return;

            case 26:
                this.Slot8Card = ((CardGameClient.CardPlace)(target));
                return;

            case 27:
                this.CardsExitBtn = ((CardGameClient.StyledBtn)(target));
                return;

            case 28:
                this.CardsScore = ((CardGameClient.StyledTextBox)(target));
                return;

            case 29:
                this.CardsShopBtn = ((CardGameClient.StyledBtn)(target));
                return;

            case 30:
                this.ShopGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:

            #line 192 "..\..\..\LobbyScreen.xaml"
                ((System.Windows.Controls.Image)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseUp);

            #line default
            #line hidden
                return;

            case 32:
                this.nabor1Btn = ((CardGameClient.StyledBtn)(target));
                return;

            case 33:
                this.nabor2Btn = ((CardGameClient.StyledBtn)(target));
                return;

            case 34:
                this.nabor3Btn = ((CardGameClient.StyledBtn)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CharacterCreateWnd = ((CardGameClient.CharacterCreateScreen)(target));

            #line 5 "..\..\..\CharacterCreateScreen.xaml"
                this.CharacterCreateWnd.Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden

            #line 5 "..\..\..\CharacterCreateScreen.xaml"
                this.CharacterCreateWnd.Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

            #line 5 "..\..\..\CharacterCreateScreen.xaml"
                this.CharacterCreateWnd.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 5 "..\..\..\CharacterCreateScreen.xaml"
                this.CharacterCreateWnd.ContentRendered += new System.EventHandler(this.Window_ContentRendered);

            #line default
            #line hidden

            #line 5 "..\..\..\CharacterCreateScreen.xaml"
                this.CharacterCreateWnd.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.CharacterCreateWnd_IsVisibleChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.characterNameTextBox = ((CardGameClient.StyledTextBox)(target));
                return;

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

            case 4:
                this.createCharBtn = ((CardGameClient.StyledBtn)(target));
                return;

            case 5:
                this.grid2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.errorText = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.gridHeroes = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.errorPopupInfo = ((CardGameClient.PopupInfo)(target));
                return;
            }
            this._contentLoaded = true;
        }