Ejemplo n.º 1
0
 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";
     }
 }
Ejemplo n.º 2
0
 public FormMain()
 {
     InitializeComponent();
     scorecard = new YahtzeeScorecard();
     dice      = new YahtzeeDice();
 }