Ejemplo n.º 1
0
 private void Clear()
 {
     ClearDiceButtons();
     CurrentThrow         = 0;
     RollButton.IsEnabled = true;
     ScoreSheets[1]       = new ScoreSheet("Current throw");
     if (IsGameEnded())
     {
         MessageBox.Show("Game ended your score is: " + ScoreSheets[0].GetFinalScore());
         ResetGame();
     }
     ScoreSheetDG.Items.Refresh();
 }
Ejemplo n.º 2
0
 private void ResetGame()
 {
     ScoreSheets[0] = new ScoreSheet("Current throw");
     SetScoreButtonsIsEnabled(true);
 }