示例#1
0
        public void Table()
        {
            Menu();
            Console.Write("Please enter the row ");
            int row = int.Parse(Console.ReadLine());

            Console.Write($"Please enter the column ");
            int column = int.Parse(Console.ReadLine());

            park[row, column] = new SpaceForPark();
            AllPark.ParkTable();
        }
示例#2
0
        public static void Menu()
        {
            Console.Clear();
            camera.Match(car, camera);
            Console.WriteLine("Please enter \"Yes\" if you want to see the park otherwise \"No\"");

            string answer = Console.ReadLine();

            switch (answer)
            {
            case "Yes":
                AllPark.ParkTable();
                park = new AllPark();
                Console.WriteLine(park);
                break;

            default:
                park = new AllPark();
                Console.WriteLine(park);
                break;
            }
        }