Exemple #1
0
        public void ShowAnswerIsIncorrect(string correctAnswer)
        {
            ActionButton.Focus();
            ActionButton.Content = "Next";
            ActionButton.Click  -= ActionButton_CheckClick;
            ActionButton.Click  += ActionButton_NextClick;

            ResultContent.Text = "Wrong! Correct answer is: " + correctAnswer;
        }
Exemple #2
0
        public void ShowAnswerIsCorrect()
        {
            ActionButton.Focus();
            ActionButton.Content = "Next";
            ActionButton.Click  -= ActionButton_CheckClick;
            ActionButton.Click  += ActionButton_NextClick;

            ResultContent.Text = "Correct!!!";
        }
        private void MinutesTextBoxOnKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key != Key.Enter)
            {
                return;
            }

            SetNewSessionLength();
            ActionButton.Focus();
        }