예제 #1
0
        private void button1_Click(object sender, EventArgs e)//btRearch
        {
            string cNo   = tbCourseNo.Text;
            string cName = tbCourseName.Text;

            lvCourse.Items.Clear();
            CourseManageAction.loadAllCourse(lvCourse, cNo, cName);
        }
예제 #2
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);
        }
예제 #3
0
 private void btnReUpdate_Click(object sender, EventArgs e)
 {
     CourseManageAction.loadAllCourse(lvCourse);
 }