private void cmiNewQuestion_Click(object sender, EventArgs e)
 {
     //frmQuestionManager newQ = new frmQuestionManager(ref quizData);
     frmQuestionManager newQ = new frmQuestionManager(this);
     if (newQ.ShowDialog() == DialogResult.OK)
         lbxQuestions.Items.Add(newQ.q);
 }
 private void cmiEditQuestion_Click(object sender, EventArgs e)
 {
     if (lbxQuestions.SelectedIndex == -1) return;
     TriviaQuestionData eq = (TriviaQuestionData)lbxQuestions.SelectedItem;
     frmQuestionManager editQ = new frmQuestionManager(this, eq);
     editQ.ShowDialog();
 }