예제 #1
0
        private void OnSkip(Window window)
        {
            var next = _spellTestService.SkipQuestion();

            CurrentSpelling = next;
            CurrentAnswer   = "";

            if (next == null)
            {
                // All questions answered
                _speachService.Say("Test Completed", true);
                SaveAnswers();
                OnQuit(window);
            }
        }
예제 #2
0
        private void OnSkip(Window window)
        {
            var next = _spellTestService.SkipQuestion();

            CurrentSpelling = next;
            CurrentAnswer   = "";

            if (next == null)
            {
                // All questions answered

                OnQuit(window);

                // Appears that setting the property to null was not triggering an evaluation of CanExecuteChanged post command execution.
                // It was being called just before command invocation but the command is already triggered at that point so what's the point.

                //AnswerCommand.RaiseCanExecuteChanged();
                //SkipCommand.RaiseCanExecuteChanged();
            }
        }