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(); } }
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; }