// While simple, this is unfortunately a deal-breaker. If you need to go through the // trouble of writing this stub WndProc, might as well write a proper switch statement // and call the handler directly. protected override void WndProc(ref Message m) { if (!WinMessageHandler.CallGenericHandler(this, ref m)) { base.WndProc(ref m); } }
public void OnWinMessageEvent(char symbol, GameStates gameState) { WinMessageHandler winMessageEvent = WinMessageEvent; if (winMessageEvent != null) { winMessageEvent(symbol, gameState); } }