// A QuestionButton has been pushed. If it hasn't been answered yet, launch // questionForm. If it has been answered, show reassignmentMenu. private static void LaunchQuestion(object sender, QuestionButtonEventArgs qb) { if (qb.Button.Answered == false) { questionBoard.Hide(); lastQuestionButtonSelected = qb.Button; questionForm.Show(qb.Button.Question, qb.Button.Answer); } else { reassignmentMenu.Show(qb.Button, Cursor.Position); } }
// Handle a QuestionSelected event by entering question edit mode private static void QuestionSelected(object sender, QuestionButtonEventArgs e) { editor.EnterQuestionEditMode(e.Button); }