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; }
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; }
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; }