Exemplo n.º 1
0
 public void UpdateLabel()
 {
     // Set my label to my bet’s description, and the label on my
     // radio button to show my cash ("Joe has 43 bucks")
     MyLabel.Text       = string.Format(MyBet.GetDescription());
     MyRadioButton.Text = string.Format("{0} has {1} bucks", Name, Cash);
 }
Exemplo n.º 2
0
 public void UpdateLabels()
 {
     if (MyBet == null)
     {
         MyLabel.Text = String.Format("{0} hasn't placed any bets", Name);
     }
     else
     {
         MyLabel.Text = MyBet.GetDescription();
     }
     MyRadioButton.Text = Name + " has " + Cash + " bucks";
 }
Exemplo n.º 3
0
 public void UpdateLabels()
 {
     // set labels to bets and radio button labels to show cash
     MyLabel.Text       = MyBet.GetDescription();
     MyRadioButton.Text = Name + " has $" + Cash + " to wager.";
 }