Esempio n. 1
0
        private void QuizDetailsButton_Click(object sender, EventArgs e)
        {
            QuizDetails questionDetailsForm = new QuizDetails();

            questionDetailsForm.ShowDialog();
            this.Visible = false;
        }
Esempio n. 2
0
        private void AddAnswerButton_Click(object sender, System.EventArgs e)
        {
            var text      = answerTextBox.Text;
            var isCorrect = correctRadioButton.Checked;

            Database.Answers.CreateAnswer(new Answer
            {
                Text      = text,
                IsCorrect = isCorrect,
                Question  = this.question
            });

            QuizDetails quizDetails = new QuizDetails();

            quizDetails.Show();
            this.Visible = false;
            this.Close();
        }