Ejemplo n.º 1
0
 public static void OnConsoleControlEvent(ConsoleControlEventHandlerArgs e)
 {
     if (ConsoleControlEvent != null)
     {
         ConsoleControlEvent(null, e);
     }
 }
Ejemplo n.º 2
0
        static bool CtrlHandlerFunction(ConsoleExCtrlEventType CtrlType)
        {
            if (ConsoleControlEvent != null)
            {
                ConsoleControlEventHandlerArgs Events = new ConsoleControlEventHandlerArgs(CtrlType);
                OnConsoleControlEvent(Events);

                return(Events.CancelProcessing);
            }

            return(false);
        }