private int intParse(FuelTypes fuelChoices) { int integer; int.TryParse(fuelChoices.ToString(), out integer); return(integer); }
public override List <string> GetDetails(List <string> io_Details) { io_Details.Add("Have Hazardous Materials:" + m_FuelType.ToString()); io_Details.Add("Current Fuel Quantity:" + m_CurrentFuelQuantity); io_Details.Add("Maximum Fuel Quantity:" + m_MaximumFuelQuantity); return(io_Details); }