private void btnLinkCourseModule_Click(object sender, EventArgs e) { var frm = new LinkModuleToCourseV2(); frm._GlobalCourseID = Convert.ToInt32(lstCourses.SelectedValue); frm._parentForm = this; frm.ShowDialog(); this.populatesTheModulesLinkedToCourse(Convert.ToInt32(this.lstCourses.SelectedValue.ToString())); }
private void btnLinkModuleToCourse_Click(object sender, EventArgs e) { var frm = new LinkModuleToCourseV2(); frm._GlobalCourseID = Convert.ToInt32(lstCourses.SelectedValue); frm._GlobalTrainingDepartmentID = Convert.ToInt32(cboTrainingDepartment.SelectedValue.ToString()); frm.ShowDialog(); if (this.cboTrainingDepartment.SelectedValue != null) { this.populateLinkedCourseModules(Convert.ToInt32(this.cboTrainingDepartment.SelectedValue.ToString())); } }