// Handles clicks on the scoresheet (entry) rows. private void TakeScore_Click(object sender, RoutedEventArgs e) { Button _button = ( Button )sender; VimModel.RowClicked(_button.Name); //UpdateCommitVisual (); UpdateCommitVisual1(); }
// Constructor public MainWindow() { InitializeComponent(); NameScope.SetNameScope(this, new NameScope()); InitialColors(); InitializeScoresheetVisual(); InitializeDiceBox(); //GameModel.NewGame (); VimModel.NewGame(); UpdateDiceVisual(); UpdateTakeScoresVisual1(); //UpdateTakeScoresVisual (); UpdateCommitVisual1(); }
private void Commit_Click(object sender, RoutedEventArgs e) { VimModel.CommitWasClicked(); // If a score was taken, then update the scoresheet. if (VimModel.CommitDetails.VisScoresheetResults.Count != 0) { UpdateScoresheetEntriesVisual1(); //UpdateScoresheetEntriesVisual (); } UpdateDiceVisual(); UpdateTakeScoresVisual1(); //UpdateTakeScoresVisual (); UpdateCommitVisual1(); //UpdateCommitVisual (); }