private void OnNextScorecard() { CurrentScorecardViewModel.OnSaveChanges(); CurrentScorecardViewModel.NextScorerRequested -= HandleNextScorecardRequest; CurrentScorecardViewModel = new ScorerRoundScorecardViewModel(); CurrentScorerNum += 1; CurrentScorecardViewModel.SetRoundAndScorer(new RoundScoringParams(_gs, CurrentRoundIndex), CurrentScorer); CurrentScorecardViewModel.NextScorerRequested += HandleNextScorecardRequest; }
private void OnPrevScorecard() { CurrentScorecardViewModel.OnSaveChanges(); CurrentScorecardViewModel.NextScorerRequested -= HandleNextScorecardRequest; CurrentScorecardViewModel = new BonusRoundScorecardViewModel(); CurrentScorer = _gs.ActiveScorers[_gs.ActiveScorers.IndexOf(CurrentScorer) - 1]; CurrentScorecardViewModel.SetRoundAndScorer(new RoundScoringParams(_gs, CurrentBonusRoundIndex), CurrentScorer); CurrentScorecardViewModel.NextScorerRequested += HandleNextScorecardRequest; NextScorecardCommand.RaiseCanExecuteChanged(); PreviousScorecardCommand.RaiseCanExecuteChanged(); }
private void OnSaveAndReturn() { CurrentScorecardViewModel.OnSaveChanges(); CurrentScorecardViewModel.NextScorerRequested -= HandleNextScorecardRequest; RoundComplete(_gs); }