コード例 #1
0
        private void btnNewQuestion_Click(object sender, EventArgs e)
        {
            var editItemForm = new QuestionEditor(Db, Course);

            Hide();
            editItemForm.ShowDialog();
            Show();
            UpdateQuestionList();
        }
コード例 #2
0
        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();
        }