Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 private void btnReUpdate_Click(object sender, EventArgs e)
 {
     CourseManageAction.loadAllCourse(lvCourse);
 }