Example #1
0
        }//-------------------

        //####################################END CLASS PersonSearchOnTextBoxList EVENTS####################################

        //##################################DATAGRIDVIEW dgvList EVENTS##########################################################
        //event is raised when the control is double clicked
        protected override void dgvListDoubleClick(object sender, EventArgs e)
        {
            if (_pbxBase != null && _pbxBase.Image != null)
            {
                _pbxBase.Image.Dispose();
                _pbxBase.Image = null;
            }

            GC.SuppressFinalize(this);
            GC.Collect();

            if (_isForStudentVerificaion && !_isForNewUserVerification)
            {
                _studentInfo = _baseServiceManager.SelectBySysIDPersonStudentInformation(_userInfo,
                                                                                         _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
            }
            else if (!_isForStudentVerificaion && _isForNewUserVerification)
            {
                _newUserInfo = _baseServiceManager.SelectBySysIDPersonSystemUserInfo(_userInfo,
                                                                                     _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
            }
            else
            {
                _empInfo = _baseServiceManager.SelectBySysIDPersonEmployeeInformation(_userInfo,
                                                                                      _baseServiceManager.GetPersonSysId(_rowIndex), Application.StartupPath);
            }

            base.dgvListDoubleClick(sender, e);
        }//---------------------
Example #2
0
        }//---------------------------

        //event is raised when the mouse is double clicked
        private void dgvListMouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (_rowIndex >= 0)
            {
                _hasSelected = true;

                if (!_isForPersonVerification)
                {
                    if (_pbxPerson.Image != null)
                    {
                        _pbxPerson.Image.Dispose();
                        _pbxPerson.Image = null;
                    }

                    GC.SuppressFinalize(this);
                    GC.Collect();

                    if (_isForStudentVerification)
                    {
                        _studentInfo = _baseServicesManager.SelectBySysIDPersonStudentInformation(_userInfo,
                                                                                                  _baseServicesManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                    }
                    else
                    {
                        _employeeInfo = _baseServicesManager.SelectBySysIDPersonEmployeeInformation(_userInfo,
                                                                                                    _baseServicesManager.GetPersonSysId(_rowIndex), Application.StartupPath);
                    }
                }

                this.Close();
            }
        }//---------------------------