private static bool IgnoreConsoleCancelKeyPressMethod(CtrlTypes ctrlType) { if (ctrlType.In(CtrlTypes.CTRL_C_EVENT, CtrlTypes.CTRL_BREAK_EVENT)) { return(true); } return(false); }
private static bool HandleConsoleCancelKeyPress(CtrlTypes ctrlType) { if (ctrlType.In(CtrlTypes.CTRL_C_EVENT, CtrlTypes.CTRL_C_EVENT)) { return(true); } return(false); }