}//--------------------------------- //##################################END BUTTON btnSearchStudent EVENTS########################################################## //##################################BUTTON btnSearchScholarship EVENTS########################################################## //event is raised when the control is clicked private void btnSearchScholarshipClick(object sender, EventArgs e) { try { this.Cursor = Cursors.WaitCursor; using (StudentScholarshipSearchOnTextBoxList frmSearch = new StudentScholarshipSearchOnTextBoxList(_userInfo, _scholarshipManager)) { frmSearch.AdoptGridSize = true; frmSearch.ShowDialog(this); if (frmSearch.HasSelected) { _scholarshipInfo = _scholarshipManager.GetDetailsScholarshipInformation(frmSearch.PrimaryId); _studentScholarshipInfo.ScholarshipInfo = _scholarshipInfo; this.lblCourseGroupDescription.Text = _scholarshipManager.GetCourseGroupDescription(_scholarshipInfo.CourseGroupInfo.CourseGroupId); this.lblDepartmentDescription.Text = _scholarshipManager.GetDepartmentDescription(_scholarshipInfo.DepartmentInfo.DepartmentId); this.lblScholarshipDescription.Text = _scholarshipInfo.ScholarshipDescription; this.chkNonAcademic.Checked = _scholarshipInfo.IsNonAcademic; } } this.Cursor = Cursors.Arrow; } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading"); } }//-------------------------------
}//------------------- //##################################END PICTUREBOX pbxRefresh EVENTS###################################################### //##################################DATAGRIDVIEW dgvList EVENTS###################################################### //event is raised when the control is double clicked protected override void dgvListDoubleClick(object sender, EventArgs e) { try { if (!String.IsNullOrEmpty(this.PrimaryId)) { this.Cursor = Cursors.WaitCursor; using (ScholarshipUpdate frmUpdate = new ScholarshipUpdate(_userInfo, _scholarshipManager.GetDetailsScholarshipInformation(this.PrimaryId), _scholarshipManager)) { frmUpdate.ShowDialog(this); if (frmUpdate.HasUpdated) { this.txtSearch.Clear(); this.SetDataGridViewSource(_scholarshipManager.GetSearchedScholarshipInformation(String.Empty)); } } this.Cursor = Cursors.Arrow; } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading"); } }//-------------------