private static void Load() { Autobazar.LoadVehicles(); if (Autobazar.GetVehicleCount() == 0) { Console.WriteLine("There are no vehicles in autobazar."); } else { WriteVehiclesToScreen(); } }
static void Main(string[] args) { try { Autobazar.LoadVehicles(); } catch { Console.WriteLine("Error! Something went wrong with loading vehicles."); Console.WriteLine("Application will be closed. Press any key."); Console.ReadKey(); return; } AutobazarMenu.Run(); }