コード例 #1
0
 // 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);
     }
 }
コード例 #2
0
ファイル: Game.cs プロジェクト: Postremus/UniTTT
        public void OnWinMessageEvent(char symbol, GameStates gameState)
        {
            WinMessageHandler winMessageEvent = WinMessageEvent;

            if (winMessageEvent != null)
            {
                winMessageEvent(symbol, gameState);
            }
        }