Esempio n. 1
0
        private void CreateCar()
        {
            CarInfo newCar = new CarInfo();

            Console.WriteLine("What is the make?");
            newCar.Make = Console.ReadLine();

            Console.WriteLine("What is the model?");
            newCar.Model = Console.ReadLine();

            Console.WriteLine("What kinda MPG does it get?");
            newCar.MilesPerGallon = int.Parse(Console.ReadLine());

            Console.WriteLine("Is it badass? y/n");
            newCar.IsItBadass = IsItBadass();

            Console.WriteLine("What Type of Car is it? I'm super cereal");
            newCar.CarType = DefineCarType();
        }
Esempio n. 2
0
 public void RemoveCarInfo(CarInfo info)
 {
     _listOfCarInfo.Remove(info);
 }
Esempio n. 3
0
 public void AddCarToList(CarInfo info)
 {
     _listOfCarInfo.Add(info);
 }