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