public void RemoveBinding(object oEventSource, string sEventName) { ITisEventBinding eventBinding = EventBindingsMngr.RemoveBinding(oEventSource, sEventName); UpdateEventSource(oEventSource, eventBinding, false); }
public ITisEventBinding AddBinding(object oEventSource, string sEventName, ITisInvokeParams oInvokeParams) { ITisEventBinding eventBinding = EventBindingsMngr.AddBinding(oEventSource, sEventName, oInvokeParams); UpdateEventSource(oEventSource, eventBinding, true); return(eventBinding); }
public ITisInvokeParams GetBinding(object oEventSource, string sEventName) { ITisEventBinding oEventBinding = EventBindingsMngr.GetBinding(oEventSource, sEventName); if (oEventBinding == null) { return(null); } return(oEventBinding.InvokeParams); }
public ITisEventBinding AddBinding(object oEventSource, string sEventName, string sInvokeTypeName, string sEventString) { ITisEventBinding eventBinding = EventBindingsMngr.AddBinding( oEventSource, sEventName, new TisInvokeParams(sInvokeTypeName, sEventString)); UpdateEventSource(oEventSource, eventBinding, true); return(eventBinding); }
public ITisEventBinding AddBinding(object oEventSource, string sEventName, MethodInfo oMethodInfo) { ITisEventBinding eventBinding = EventBindingsMngr.AddBinding( oEventSource, sEventName, oMethodInfo); UpdateEventSource(oEventSource, eventBinding, true); return(eventBinding); }
public ITisEventBinding[] GetBindings(object oEventSource) { List <ITisEventBinding> bindings = EventBindingsMngr.GetBindings(oEventSource); if (bindings != null) { return(EventBindingsMngr.GetBindings(oEventSource).ToArray()); } else { return(null); } }
public ITisEventBinding AddDNBinding( object oEventSource, string sEventName, string sModuleName, string sClassName, string sMethodName) { ITisEventBinding eventBinding = EventBindingsMngr.AddBinding( oEventSource, sEventName, new TisDNInvokeParams(sModuleName, sClassName, sMethodName)); UpdateEventSource(oEventSource, eventBinding, true); return(eventBinding); }
public ITisEventBinding AddBinding(object oEventSource, string sEventName, TisInvokeType enInvokeType, string sEventString) { ITisEventBinding eventBinding = null; switch (enInvokeType) { case TisInvokeType.DOTNET: { eventBinding = EventBindingsMngr.AddBinding( oEventSource, sEventName, new TisDNInvokeParams(sEventString)); break; } } UpdateEventSource(oEventSource, eventBinding, true); return(eventBinding); }
public bool Contains(object oEventSource, string sEventName) { return(EventBindingsMngr.Contains(oEventSource, sEventName)); }