protected virtual void InvokeActivated(bool active) { Active = active; ActivatedEventHandler h = Activated; if (h != null) { h(this, new EventArgs()); } }
public static void RemoveActivatedEventHandler(ActivatedEventHandler objectclicked) { OnActivated -= objectclicked; }
public static void AddActivatedEventHandler(ActivatedEventHandler objectclicked) { OnActivated += objectclicked; }