示例#1
0
        private void Next(bool?lastAnswer)
        {
            UpdateStatistics(lastAnswer);

            ExpressionsView.MoveCurrentToNext();

            if (ExpressionsView.CurrentPosition >= LastPosition)
            {
                CanShowAnswer         = false;
                ShowEvaluationButtons = true;
                LastPosition          = ExpressionsView.CurrentPosition;
            }
            else
            {
                CanShowAnswer         = true;
                ShowEvaluationButtons = false;
            }

            if (CheckIfLast())
            {
                return;
            }

            Spelling = null;

            Notify(() => Expression);
            Notify(() => Translation);
            Notify(() => Translation2);
            Notify(() => Title);
            Notify(() => Category);
        }
示例#2
0
        private void Prev()
        {
            if (ExpressionsView.CurrentPosition <= 0)
            {
                return;
            }

            CanShowAnswer         = true;
            ShowEvaluationButtons = false;
            ExpressionsView.MoveCurrentToPrevious();

            Notify(() => Expression);
            Notify(() => Translation);
            Notify(() => Translation2);
            Notify(() => Title);
            Notify(() => Category);
        }