예제 #1
0
        private void GetRoleList()
        {
            try
            {
                base.BeginProcessing("Begin Load data...", "Please Waiting for Loading Data");

                using (AdministratorBLL adminBll = new AdministratorBLL())
                {
                    this.lstRole = adminBll.GetRoleList();
                }

                if (this.lstRole != null)
                {
                    this.grdRole.DataSource = this.lstRole;
                }
                else
                {
                    this.grdRole.DataSource = null;
                }
            }
            catch (Exception ex)
            {
                base.FinishedProcessing();
                XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1);
            }
            finally
            {
                base.FinishedProcessing();
            }
        }
예제 #2
0
        private void InitializaLOVData()
        {
            List <Role> lstRole;

            using (AdministratorBLL adminBll = new AdministratorBLL())
            {
                lstRole = adminBll.GetRoleList();
            }

            //for storage type
            this.grvUserList_rps_ROLE_ID.DataSource   = lstRole;
            this.lueDefaultRole.Properties.DataSource = lstRole;
        }