Esempio n. 1
0
        public string GetDesiredLocation()
        {
            Console.WriteLine("Which of these locations is closest to you?");
            Console.WriteLine(" ");
            MyStoreManager.PrintLocations();

            int inputNumber = MyInputCollector.GetNumber();

            while (!MyStoreManager.CheckLocationNumber(inputNumber))
            {
                Console.WriteLine("That was not a listed number!");
                inputNumber = MyInputCollector.GetNumber();
            }
            return(MyStoreManager.GetStringLocationByInt(inputNumber));
        }