示例#1
0
        static void Main(string[] args)
        {
            Console.CursorVisible = false;
            var sweeper = new Sweeper(autoSweep: true);

            sweeper.Run();
        }
示例#2
0
文件: Program.cs 项目: zmjack/NWin32
        static void Main(string[] args)
        {
            Console.CursorVisible = false;
            var sweeper = new Sweeper();

            Task.Run(() => sweeper.Run());
            while (true)
            {
                if (Console.ReadKey(true).Key == ConsoleKey.Enter)
                {
                    sweeper.Sweep();
                }
            }
        }