private void ResetGame() { ResetRoll(); scorecard = new YahtzeeScorecard(); dice = new YahtzeeDice(); EScoresTabUpper.Text = "Upper: 0"; EScoresTabLower.Text = "Lower: 0"; foreach (Control ctrl in EScoresTabUpper.Controls) { ctrl.Enabled = true; } foreach (Control ctrl in EScoresTabLower.Controls) { ctrl.Enabled = true; } foreach (Control ctrl in EScoresUpperGroup.Controls) { ctrl.Text = "0"; } foreach (Control ctrl in EScoresLowerGroup.Controls) { ctrl.Text = "0"; } }
public FormMain() { InitializeComponent(); scorecard = new YahtzeeScorecard(); dice = new YahtzeeDice(); }