コード例 #1
0
        private void ShowQuestion()
        {
            state = QAState.ShowingQuestion;

            questionTextview.Buffer.Text = currentQA.Question;

            userResponseTextview.Buffer.Text = "";
            userResponseTextview.Sensitive   = true;
            userResponseTextview.GrabFocus();
            answerTextview.Buffer.Text = "";
            answerTextview.Sensitive   = false;

            acceptAnswerButton.Sensitive = false;
            rejectAnswerButton.Sensitive = false;
            showAnswerButton.Sensitive   = true;
        }
コード例 #2
0
        private void ShowAnswer()
        {
            if (state == QAState.ShowingAnswer)
            {
                return;
            }

            state = QAState.ShowingAnswer;

            answerTextview.Buffer.Text = currentQA.Answer;
            answerTextview.Sensitive   = true;

            if (currentQA.HasImage)
            {
                string imagepath = System.IO.Path.Combine(conductor.BasePath, "images", currentQA.ImageFile);
                ShowImage(imagepath);
            }

            userResponseTextview.Sensitive = false;
            acceptAnswerButton.Sensitive   = true;
            rejectAnswerButton.Sensitive   = true;
            showAnswerButton.Sensitive     = false;
        }
コード例 #3
0
        private void ShowQuestion()
        {
            state = QAState.ShowingQuestion;

            questionTextview.Buffer.Text = currentQA.Question;

            userResponseTextview.Buffer.Text = "";
            userResponseTextview.Sensitive = true;
            userResponseTextview.GrabFocus();
            answerTextview.Buffer.Text = "";
            answerTextview.Sensitive = false;

            acceptAnswerButton.Sensitive = false;
            rejectAnswerButton.Sensitive = false;
            showAnswerButton.Sensitive = true;
        }
コード例 #4
0
        private void ShowAnswer()
        {
            if(state == QAState.ShowingAnswer)
                return;

            state = QAState.ShowingAnswer;

            answerTextview.Buffer.Text = currentQA.Answer;
            answerTextview.Sensitive = true;

            if(currentQA.HasImage)
            {
                string imagepath = System.IO.Path.Combine(conductor.BasePath, "images", currentQA.ImageFile);
                ShowImage(imagepath);
            }

            userResponseTextview.Sensitive = false;
            acceptAnswerButton.Sensitive = true;
            rejectAnswerButton.Sensitive = true;
            showAnswerButton.Sensitive = false;
        }