Esempio n. 1
0
        // 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();
        }
Esempio n. 2
0
        // Constructor

        public MainWindow()
        {
            InitializeComponent();
            NameScope.SetNameScope(this, new NameScope());
            InitialColors();
            InitializeScoresheetVisual();
            InitializeDiceBox();


            //GameModel.NewGame ();
            VimModel.NewGame();

            UpdateDiceVisual();
            UpdateTakeScoresVisual1();
            //UpdateTakeScoresVisual ();
            UpdateCommitVisual1();
        }
Esempio n. 3
0
        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 ();
        }