コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((MonopolyDealClient.playerDisplay)(target));
                return;

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

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

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

            case 5:
                this.button3 = ((System.Windows.Controls.Button)(target));
                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));
                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
 public void initializeDisplay()
 {
     myDisplay = new playerDisplay();
     myDisplay.button1.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.button2.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.button3.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.buttonBack.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.buttonPlayer.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.cardsLeftText.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.deckCountDisplay.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.Hand.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.handLabel.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.moneyLabel.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.propertiesLabel.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.Table_Money.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.Table_Properties.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.turnsLeftDisplay.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.turnsLeftText.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.universalPrompt.Visibility = System.Windows.Visibility.Hidden;
     myDisplay.Show();
     this.Hide();
 }