コード例 #1
0
ファイル: Program.cs プロジェクト: SongSooJin/Cshap
        static void Main()

        {
            // Add event handlers to Show event.
            _show += new Program.EventHandler(Cat);
            _show += new Program.EventHandler(Dog);
            _show += new Program.EventHandler(Mouse);
            _show += new Program.EventHandler(Mouse);


            // Invoke the event.
            //d1.Invoke();
            //if (_show != null) {
            //    _show();
            //}

            _show?.Invoke();
        }
コード例 #2
0
 private static extern bool SetConsoleCtrlHandler(Program.EventHandler handler, bool add);