Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.charArea = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 5:
                this.muteButton = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.muteButton.Click += new System.Windows.RoutedEventHandler(this.mute_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.FloorLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.FloorNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.HP_XP = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.healthLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.playerHealth = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 12:
                this.expLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.playerExP = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

            case 15:
                this.playerLevel = ((System.Windows.Controls.Label)(target));
                return;

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

            case 17:
                this.intLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.dexLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.unUsedTalentPointsLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.unUsedTalentPoints = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.plusStr = ((System.Windows.Controls.Button)(target));

            #line 90 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.plusStr.Click += new System.Windows.RoutedEventHandler(this.plusStr_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.plusInt = ((System.Windows.Controls.Button)(target));

            #line 91 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.plusInt.Click += new System.Windows.RoutedEventHandler(this.plusInt_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.plusDex = ((System.Windows.Controls.Button)(target));

            #line 92 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.plusDex.Click += new System.Windows.RoutedEventHandler(this.plusDex_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.playerInv = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this.armorLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.armorBox = ((System.Windows.Controls.ComboBox)(target));

            #line 96 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.armorBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.armorBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.weaponLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.weaponBox = ((System.Windows.Controls.ComboBox)(target));

            #line 107 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.weaponBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.weaponBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 29:
                this.consumeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.consumeBox = ((System.Windows.Controls.ComboBox)(target));

            #line 118 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.consumeBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.consumeBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 31:
                this.useConsumable = ((System.Windows.Controls.Button)(target));

            #line 127 "..\..\..\..\Classes\Game Elements\inGame.xaml"
                this.useConsumable.Click += new System.Windows.RoutedEventHandler(this.useConsumable_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.consumeSizeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.GoldAmountLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 34:
                this.GoldAmount = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.Shop1 = ((FinalGame.Classes.Game_Elements.Shop)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.playArea = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.charArea = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.PlayerName_FloorNumber = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     this.muteButton = ((System.Windows.Controls.Button)(target));
     
     #line 54 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.muteButton.Click += new System.Windows.RoutedEventHandler(this.mute_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.charName = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.FloorLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.FloorNumber = ((System.Windows.Controls.Label)(target));
     return;
     case 9:
     this.HP_XP = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.healthLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.playerHealth = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 12:
     this.expLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     this.playerExP = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 14:
     this.playerStats = ((System.Windows.Controls.Grid)(target));
     return;
     case 15:
     this.playerLevel = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.strLevel = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.intLevel = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.dexLevel = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.unUsedTalentPointsLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.unUsedTalentPoints = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.plusStr = ((System.Windows.Controls.Button)(target));
     
     #line 90 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.plusStr.Click += new System.Windows.RoutedEventHandler(this.plusStr_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.plusInt = ((System.Windows.Controls.Button)(target));
     
     #line 91 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.plusInt.Click += new System.Windows.RoutedEventHandler(this.plusInt_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.plusDex = ((System.Windows.Controls.Button)(target));
     
     #line 92 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.plusDex.Click += new System.Windows.RoutedEventHandler(this.plusDex_Click);
     
     #line default
     #line hidden
     return;
     case 24:
     this.playerInv = ((System.Windows.Controls.Grid)(target));
     return;
     case 25:
     this.armorLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.armorBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 96 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.armorBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.armorBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 27:
     this.weaponLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.weaponBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 107 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.weaponBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.weaponBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 29:
     this.consumeLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.consumeBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 118 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.consumeBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.consumeBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 31:
     this.useConsumable = ((System.Windows.Controls.Button)(target));
     
     #line 127 "..\..\..\..\Classes\Game Elements\inGame.xaml"
     this.useConsumable.Click += new System.Windows.RoutedEventHandler(this.useConsumable_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.consumeSizeLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 33:
     this.GoldAmountLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 34:
     this.GoldAmount = ((System.Windows.Controls.Label)(target));
     return;
     case 35:
     this.Shop1 = ((FinalGame.Classes.Game_Elements.Shop)(target));
     return;
     }
     this._contentLoaded = true;
 }