/// <summary> /// Deregister a Context Action /// <code></code>DeregisterContextAction(typeof(Object), "Clueless Object!");</code> /// </summary> /// <param name="libomvType"></param> /// <param name="label"></param> public void DeregisterContextAction(Type libomvType, String label) { lock (contextEventHandlers) { contextEventHandlers.RemoveAll(e => { ContextAction ca = e as ContextAction; return(ca != null && ca.Label == label && libomvType == ca.ContextType); }); } }
public void RegisterContextAction(ContextAction handler) { instance.ContextActionManager.RegisterContextAction(handler); }