예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((MonopolyDealServer.playerTurn)(target));
                return;

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

            case 3:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 7 "..\..\playerTurn.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 8 "..\..\playerTurn.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

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

            #line 9 "..\..\playerTurn.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.Hand = ((System.Windows.Controls.ListBox)(target));
                return;

            case 7:
                this.Table_Properties = ((System.Windows.Controls.ListBox)(target));
                return;

            case 8:
                this.buttonBack = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\playerTurn.xaml"
                this.buttonBack.Click += new System.Windows.RoutedEventHandler(this.buttonBack_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Table_Money = ((System.Windows.Controls.ListBox)(target));
                return;

            case 10:
                this.propertiesLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.moneyLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.buttonPlayer = ((System.Windows.Controls.Button)(target));
                return;

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

            case 14:
                this.cardsLeftText = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 16:
                this.turnsLeftText = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 18:
                this.handLabel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.universalPrompt = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.window = ((MonopolyDealServer.playerTurn)(target));
     return;
     case 2:
     this.grid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 7 "..\..\playerTurn.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 8 "..\..\playerTurn.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 9 "..\..\playerTurn.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.Hand = ((System.Windows.Controls.ListBox)(target));
     return;
     case 7:
     this.Table_Properties = ((System.Windows.Controls.ListBox)(target));
     return;
     case 8:
     this.buttonBack = ((System.Windows.Controls.Button)(target));
     
     #line 12 "..\..\playerTurn.xaml"
     this.buttonBack.Click += new System.Windows.RoutedEventHandler(this.buttonBack_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.Table_Money = ((System.Windows.Controls.ListBox)(target));
     return;
     case 10:
     this.propertiesLabel = ((System.Windows.Controls.TextBox)(target));
     return;
     case 11:
     this.moneyLabel = ((System.Windows.Controls.TextBox)(target));
     return;
     case 12:
     this.buttonPlayer = ((System.Windows.Controls.Button)(target));
     return;
     case 13:
     this.deckCountDisplay = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.cardsLeftText = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 15:
     this.turnsLeftDisplay = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.turnsLeftText = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 17:
     this.Prompt = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.handLabel = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.universalPrompt = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }