Exemplo n.º 1
0
        }//------------------------

        //event is raised when the control is double clicked
        private void dgvStudentEnrolledDoubleClick(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                StudentLoadingLogic studentManager = new StudentLoadingLogic(_userInfo);

                studentManager.GetSearchedStudentInformation(_userInfo, _sysIdStudent, String.Empty, String.Empty, String.Empty, String.Empty);

                using (StudentLoading frmShow = new StudentLoading(_userInfo,
                                                                   _scheduleManager.GetDetailsStudentInformation(_userInfo, _sysIdStudent, Application.StartupPath), studentManager))
                {
                    frmShow.ShowDialog(this);

                    _scheduleManager.SelectBySysIDScheduleListStudentLoad(_userInfo, _schedInfo.ScheduleSysId);

                    this.dgvStudentEnrolled.DataSource  = _scheduleManager.GetStudentEnrolled(true);
                    this.dgvStudentWithdrawn.DataSource = _scheduleManager.GetStudentEnrolled(false);

                    this.tblStudentEnrolled.Text  = "Student Enrolled  (" + this.dgvStudentEnrolled.Rows.Count.ToString() + ")";
                    this.tblStudentWithdrawn.Text = "Student Withdrawn  (" + this.dgvStudentWithdrawn.Rows.Count.ToString() + ")";
                }
            }
            catch
            {
                RemoteClient.ProcStatic.ShowErrorDialog("Error Loading Student Loading Mudule.", "Error Loading");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//------------------------