예제 #1
0
        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());
        }
예제 #2
0
 public override string ToString()
 {
     return(MonthlyPrice.ToString("C") + "/" + Period + " (" + TotalCharge.ToString("C") + ")");
 }
예제 #3
0
 public override string ToString()
 {
     // Generates the text shown in the combo box
     return(MonthlyPrice.ToString("c") + "/" + Period + " (Total : " + TotalCharge.ToString("c") + ")");
 }