public string ToStringMultiLine() { string newLineString = "State: " + BatteryDetail.GetBatStatName((BatteryStatus)stateOfBat) + "\r\nVol: " + volOfBat + "\r\nAvgCurr: " + avgCurrent + "\r\nNumberRun" + numberOfRun; //return String.Format("State:{0}{4}Vol:{1}{4}AvgCurr:{2}{4}Res:{3}{4}NumberRun:{4}", BatteryDetail.GetBatStatName((BatteryStatus)stateOfBat), volOfBat, avgCurrent, resOfBat, numberOfRun, "\n"); return(newLineString); }
public override string ToString() { return(String.Format("State:{0}\tVol:{1}\tAvgCurr:{2}\tRes:{3}\tNumberRun:{4}", BatteryDetail.GetBatStatName((BatteryStatus)stateOfBat), volOfBat, avgCurrent, resOfBat, numberOfRun)); }