Exemplo n.º 1
0
        private void btoDelete_Click(object sender, EventArgs e)
        {
            if (lvLessons.SelectedItems.Count == 0)
            {
                return;
            }

            if (MessageBox.Show("确定要删除吗?", "", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                int i = CourseManageAction.delopenCourse(lvLessons.SelectedItems[0].SubItems[0].Text.Trim());
                MessageBox.Show(i + " row(s) affected");
            }
            CourseManageAction.loadAllCourse(lvCourse);
        }