private void ConKeyPressed(object s, KeyPressEventArgs e) { if (COnKeyPressed != null) { COnKeyPressed.Invoke(s, e); } }
public void ClearHandlers() { if (COnTextChanged != null) { foreach (Delegate d in COnTextChanged.GetInvocationList()) { COnTextChanged -= (OnTextChange)d; } } if (COnKeyPressed != null) { foreach (Delegate d in COnKeyPressed.GetInvocationList()) { COnKeyPressed -= (OnKeyPress)d; } } }