コード例 #1
0
        }//-------------------------

        //###########################################END CLASS StudentManager EVENTS#####################################################

        //##########################################CLASS StudentSearchList EVENTS#######################################################
        //event is raised when the datagrid is double clicked or enter
        private void _frmStudentSearchOnDoubleClickEnter(String id)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                using (StudentLoading frmShow = new StudentLoading(_userInfo,
                                                                   _studentManager.GetDetailsStudentInformation(_userInfo, id, Application.StartupPath), _studentManager))
                {
                    _frmStudentSearch.WindowState = FormWindowState.Minimized;

                    frmShow.ShowDialog(this);

                    _frmStudentSearch.WindowState = FormWindowState.Normal;

                    this.ctlManager.SetFocusOnSearchTextBox();
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("Error Loading Student Loading Mudule.\n\n" + ex.Message, "Error Loading");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        }//---------------------
コード例 #2
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;
            }
        }//------------------------