private void btnQuestionManagement_Click(object sender, EventArgs e) { //frmQuestion form = new frmQuestion(frmQuestion.QuestionFormType.CreateSeveralQuestions, // null, null, null, null); frmQuestionChoose form = new frmQuestionChoose(null, null, null); form.ShowDialog(); }
private void btnAddQuestion_Click(object sender, EventArgs e) { Question dummy = new Question(); dummy.IdQuestionType = (string)cmbQuestionTypes.SelectedValue; frmQuestionChoose scelta = new frmQuestionChoose(null, null, null, null, dummy); scelta.ShowDialog(); if (scelta.ChosenQuestion != null && scelta.ChosenQuestion.IdQuestion != 0) { db.AddQuestionToTest(currentTest, scelta.ChosenQuestion); } scelta.Dispose(); }