/// <summary> /// Fin de el metodo populate que fue llamado de forma asincrona /// </summary> /// <param name="res"></param> void EndPopulate(IAsyncResult res) { Exception ex; if (this.InvokeRequired) { AsyncCallback d = new AsyncCallback(EndPopulate); this.Invoke(d, new object[] { res }); } else { AsyncResult result = (AsyncResult)res; DelegateWithOutAndRefParameters del = (DelegateWithOutAndRefParameters)result.AsyncDelegate; del.EndInvoke(out ex, res); if (ex != null) { throw ex; } treeList1.BeginUnboundLoad(); this.categoryTreeBindingSource.DataSource = _CategoryTreeList; treeList1.RefreshDataSource(); treeList1.EndUnboundLoad(); treeList1.ExpandAll(); _AllRuleList = FwkMembership.GetRulesAuxList(frmAdmin.Provider.Name); fwkAuthorizationRuleBindingSource.DataSource = _AllRuleList; grdAllRules.RefreshDataSource(); } }
public override SearchAllRulesRes Execute(SearchAllRulesReq pServiceRequest) { SearchAllRulesRes wRes = new SearchAllRulesRes(); FwkAuthorizationRuleList rules = FwkMembership.GetRulesAuxList(pServiceRequest.SecurityProviderName); wRes.BusinessData = rules; return(wRes); }
private void mCreateRuele_Click(object sender, EventArgs e) { using (frmRulesAdmin frm = new frmRulesAdmin()) { if (frm.ShowDialog() == DialogResult.OK) { _AllRuleList = FwkMembership.GetRulesAuxList(frmAdmin.Provider.Name); fwkAuthorizationRuleBindingSource.DataSource = _AllRuleList; grdAllRules.RefreshDataSource(); } } }
private void gridView_AllRules_DoubleClick(object sender, EventArgs e) { if (_CurrentRule == null) { return; } using (frmRulesAdmin frm = new frmRulesAdmin(_CurrentRule.Name)) { if (frm.ShowDialog() == DialogResult.OK) { _AllRuleList = FwkMembership.GetRulesAuxList(frmAdmin.Provider.Name); fwkAuthorizationRuleBindingSource.DataSource = _AllRuleList; grdAllRules.RefreshDataSource(); } } }
public override void Initialize() { //txtRuleName.Focus(); using (new WaitCursorHelper(this)) { _AllRuleList = FwkMembership.GetRulesAuxList(frmAdmin.Provider.Name); fwkAuthorizationRuleBindingSource.DataSource = _AllRuleList; grdAllRules.RefreshDataSource(); _CategoryList = FwkMembership.GetAllCategories(frmAdmin.Provider.Name); _CategoryTreeList = CategoryTreeList.Retrive_CategoryTreeList(_CategoryList); treeList1.BeginUnboundLoad(); this.categoryTreeBindingSource.DataSource = _CategoryTreeList; treeList1.RefreshDataSource(); treeList1.EndUnboundLoad(); treeList1.ExpandAll(); moveCursor = new Cursor(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Fwk.Security.Admin.Resources.move_16.ico")); } }