Esempio n. 1
0
        static void Main(string[] args)
        {
            DrawHeader();
            var        input      = string.Empty;
            AppManager appManager = new AppManager();


            Console.Write("> ");
            input = Console.ReadLine();

            while (!string.Equals(input, "exit"))
            {
                var strInput = input.Split(' ');

                switch (appManager.VerifyInput(strInput))
                {
                case Constants.InputType.Command:
                    CommandsManager(strInput);
                    break;

                case Constants.InputType.Number:
                    appManager.SearchShapeByCoordinate(strInput);
                    break;

                case Constants.InputType.Shape:
                    appManager.AddShape(strInput);
                    break;

                default:
                    Console.WriteLine("Input not recognized, please try again!");
                    break;
                }

                Console.Write("> ");
                input = Console.ReadLine();
            }
        }