Exemplo n.º 1
0
        private static bool IgnoreConsoleCancelKeyPressMethod(CtrlTypes ctrlType)
        {
            if (ctrlType.In(CtrlTypes.CTRL_C_EVENT, CtrlTypes.CTRL_BREAK_EVENT))
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
        private static bool HandleConsoleCancelKeyPress(CtrlTypes ctrlType)
        {
            if (ctrlType.In(CtrlTypes.CTRL_C_EVENT, CtrlTypes.CTRL_C_EVENT))
            {
                return(true);
            }

            return(false);
        }