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(); }
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; } }