/// <summary>
 /// Deregister a Context Action
 ///  <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);
         });
     }
 }
Beispiel #2
0
 public void RegisterContextAction(ContextAction handler)
 {
     instance.ContextActionManager.RegisterContextAction(handler);
 }
Beispiel #3
0
 public void RegisterContextAction(ContextAction handler)
 {
     instance.ContextActionManager.RegisterContextAction(handler);
 }