public override string GetInspectString() { StringBuilder str = new StringBuilder(); str.Append(base.GetInspectString()); str.AppendLine(string.Format("Current energy: {0}Wd/{1}Wd", TotalCharge.ToString("0.0"), MaxEnergy)); //Debug //str.AppendLine("Energy use: " + utilities.PowerUsage.ToString("0.0")); return(str.ToString()); }
public override string ToString() { return(MonthlyPrice.ToString("C") + "/" + Period + " (" + TotalCharge.ToString("C") + ")"); }
public override string ToString() { // Generates the text shown in the combo box return(MonthlyPrice.ToString("c") + "/" + Period + " (Total : " + TotalCharge.ToString("c") + ")"); }