Esempio n. 1
0
 public override string ToString()
 {
     return(string.Format("{0}Fuel Type: {1}   There are {2} liters of fuel available, out of a {3} liter tank capacity", Environment.NewLine, FuelType.ToString(), CurrentPropulsionAmount.ToString(), MaxPropulsion.ToString()));
 }
Esempio n. 2
0
 public override string ToString()
 {
     return(string.Format("{0}There are {1} hours of Battery power remaining {2}", Environment.NewLine, CurrentPropulsionAmount.ToString(), Environment.NewLine));
 }