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(); }
public void RemoveCarInfo(CarInfo info) { _listOfCarInfo.Remove(info); }
public void AddCarToList(CarInfo info) { _listOfCarInfo.Add(info); }