private void RequestRoleMenuAuthoritiesData() { try { this.gcRoleMenuAuthority.DataSource = null; this.gcRoleMenuAuthority.DataSource = _bll.GetRoleMenuAuthorities(new RoleMenuAuthoritiesVM { RoleName = this.teQueryRole.Text.Trim(), MenuName = this.teQueryMenu.Text.Trim() }); } catch (Exception ex) { XtraMessageBox.Show(ex.ToString(), "提示", MessageBoxButtons.OK); } }