示例#1
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (tbCourseNo.Text == "")
            {
                return;
            }

            if (MessageBox.Show("确定要删除吗?", "", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                int i = CourseManageAction.delCourse(tbCourseNo.Text.Trim());
                MessageBox.Show(i + " row(s) affected");
            }
        }