private void btnNewQuestion_Click(object sender, EventArgs e) { var editItemForm = new QuestionEditor(Db, Course); Hide(); editItemForm.ShowDialog(); Show(); UpdateQuestionList(); }
private void EditItem(object sender, ListViewColumnMouseEventArgs e) { var question = (QuestionDto)e.Item.Tag; var editItemForm = new QuestionEditor(Db, Course, question); Hide(); editItemForm.ShowDialog(); Show(); UpdateQuestionList(); }