Esempio n. 1
0
        static void CancelKeyPress(object sender, ConsoleCancelEventArgs _args)
        {
            if (_args.SpecialKey == ConsoleSpecialKey.ControlC)
            {
                Console.WriteLine("Cancelling...");
                _args.Cancel = true;

                if (archiver != null)
                {
                    archiver.Cancel();
                }
            }
        }