Пример #1
0
        static void Main(string[] args)
        {
            Console.Clear();
            Console.WriteLine("Welcome please type a command below and press enter to begin.");
            Console.WriteLine("compare or move or exit");
            ConsoleSettings.EnableQuickEditMode();
            var input = Console.ReadLine();

            Enum.TryParse(input, out command usercommand);

            switch (usercommand)
            {
            case command.compare:
            {
                Compare();
                break;
            }

            case command.move:
            {
                Move();
                break;
            }

            case command.exit:
            {
                Exit();
                break;
            }
            }
        }