private void button3_Click(object sender, EventArgs e) { if (lvLessons.SelectedItems.Count == 0) { return; } OpenCourse oc = CourseManageAction.QueryOpenCourseInfo(lvLessons.SelectedItems[0].SubItems[0].Text); studentInClass SIC = new studentInClass(oc); SIC.MdiParent = this.MdiParent; SIC.Show(); }
private void btoRevise_Click(object sender, EventArgs e) { if (lvLessons.SelectedItems.Count == 0) { return; } OpenCourse oc = CourseManageAction.QueryOpenCourseInfo(lvLessons.SelectedItems[0].SubItems[0].Text); CourseManager.OpenCourseForm ocf = new OpenCourseForm(oc); ocf.MdiParent = this.MdiParent; ocf.Show(); }