public void UpdateLabels() { if (MyBet == null) { MyLabel.Content = String.Format("{0} hasn't placed any bets", Name); } else { MyLabel.Content = MyBet.GetDescription(); } MyRadioButton.Content = this.Name + " has " + this.Cash + " bucks"; }
public Label MyLabel; // My Label /// <summary> /// Set my label to my bet's description, and the label on my /// radio button to show my cash ("Joe has 43 bucks") /// </summary> public void UpdateLabels() { MyLabel.Text = MyBet.GetDescription(); MyRadioButton.Text = Name + " has " + Cash + " bucks"; }