protected static void CancelKeyPressed(object sender, ConsoleCancelEventArgs args) { if (OnCntrC != null && args.SpecialKey == ConsoleSpecialKey.ControlC) { OnCntrC?.Invoke(); args.Cancel = false; } }
protected static void LocalCancelKeyPressed() { OnCntrC?.Invoke(); }