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(); }
private void ResetGame() { ScoreSheets[0] = new ScoreSheet("Current throw"); SetScoreButtonsIsEnabled(true); }