}//-----------------------

        //this procedure will show update user
        private void ShowUpdateDialog(CommonExchange.SysAccess newUserInfo)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                using (UserInfoAdminUpdate frmUpdate = new UserInfoAdminUpdate(_userInfo, _administrationManager, newUserInfo))
                {
                    frmUpdate.ShowDialog(this);

                    if (frmUpdate.HasUpdated)
                    {
                        if (frmUpdate.ExitUMS)
                        {
                            _exitUMS = true;
                        }
                        else
                        {
                            this.SetDataGridViewSource(_administrationManager.GetSearchUserInformation(_userInfo, this.txtSearch.Text));
                        }
                    }
                }

                if (_exitUMS)
                {
                    this.Close();
                }

                this.Cursor = Cursors.Arrow;
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading");
            }
        }//-----------------------------
        }//----------------------------

        //event is raised when the control is double clicked
        protected void dgvListMouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (!String.IsNullOrEmpty(_primaryId))
            {
                try
                {
                    this.Cursor = Cursors.WaitCursor;

                    using (UserInfoAdminUpdate frmUpdate = new UserInfoAdminUpdate(_userInfo, _administrationManager,
                                                                                   _administrationManager.GetDetailsUserInformation(_userInfo, _primaryId, Application.StartupPath)))
                    {
                        frmUpdate.ShowDialog(this);

                        if (frmUpdate.HasUpdated)
                        {
                            if (frmUpdate.ExitUMS)
                            {
                                _exitUMS = true;
                            }
                            else
                            {
                                this.SetDataGridViewSource(_administrationManager.GetSearchUserInformation(_userInfo, this.txtSearch.Text));
                            }
                        }
                    }

                    if (_exitUMS)
                    {
                        this.Close();
                    }

                    this.Cursor = Cursors.Arrow;
                }
                catch (Exception ex)
                {
                    RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading");
                }
            }
        }//--------------------