public void RemoveHandlers() { if (Pressed != null) { foreach (var d in Pressed.GetInvocationList()) { Pressed -= (ButtonEvent)d; } } if (Released != null) { foreach (var d in Released.GetInvocationList()) { Released -= (ButtonEvent)d; } } }
public void RemoveHandlers() { if (Pressed != null) { foreach (var d in Pressed.GetInvocationList()) { Pressed -= (ButtonEvent)d; } } if (Released != null) { foreach (var d in Released.GetInvocationList()) { Released -= (ButtonEvent)d; } } }