private static void Load()
        {
            Autobazar.LoadVehicles();

            if (Autobazar.GetVehicleCount() == 0)
            {
                Console.WriteLine("There are no vehicles in autobazar.");
            }
            else
            {
                WriteVehiclesToScreen();
            }
        }
예제 #2
0
        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();
        }