/// <summary> /// Invoke user call backs /// </summary> /// <param name="kd"></param> private static void KListener_KeyDown(KeyData kd) { OnKeyInput?.Invoke(null, new KeyInputEventArgs() { KeyData = kd }); }
private static void KListener_KeyDown(KeyData kd) { EventHandler <KeyInputEventArgs> handler = OnKeyInput; if (handler != null) { handler(null, new KeyInputEventArgs() { KeyData = kd }); } }