/// <remarks/> public void DispatchAsync(RibbonRequest req, object userState) { if ((this.DispatchOperationCompleted == null)) { this.DispatchOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDispatchOperationCompleted); } this.InvokeAsync("Dispatch", new object[] { req}, this.DispatchOperationCompleted, userState); }
public DataReturn ExecRibbonCall(string Action,string Obj,string Id) { DataReturn dr = new DataReturn(); sfRibbon.RibbonRequest req = new RibbonRequest(); req.action = Action; req.objname = Obj; req.id = Id; try { sfRibbon.RibbonResponse res = _ribbonBinding.Dispatch(req); Globals.Ribbons.Ribbon1.SFDebug("Call Axiom_RibbonCntroller", "Action:" + Action + " Obj:" + Obj + " Id:" + Id); dr.success = (res.success == null ? false : (res.success == true ? true : false)); dr.id = res.selectid; dr.reload = res.reload; dr.strRtn = res.message; } catch (Exception ex) { dr.success = false; dr.strRtn = ex.Message; } return dr; }
/// <remarks/> public void DispatchAsync(RibbonRequest req) { this.DispatchAsync(req, null); }