private void createDeck_Click(object sender, EventArgs e) { EditDeck editForm = new EditDeck(); editForm.quiz = null; editForm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.EditDeck_FormClosing); editForm.Show(); }
private void editQuiz_Click(object sender, EventArgs e) { Quiz q = loadQuiz(); if (q == null) { MessageBox.Show("Please select a deck"); return; } EditDeck editForm = new EditDeck(); editForm.quiz = q; editForm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.EditDeck_FormClosing); editForm.Show(); }