protected override string [] getSubLineToStore(System.Object myObject, int lineCount)
{
RunInterval newRunI = (RunInterval)myObject;
//check the time
string [] myStringFull = newRunI.IntervalTimesString.Split(new char[] { '=' });
string timeInterval = myStringFull[lineCount];
//write line for treeview
string [] myData = new String [getColsNum()];
int count = 0;
if (newRunI.DistanceInterval == -1)
{
runType = SqliteRunIntervalType.SelectAndReturnRunIntervalType(newRunI.Type, Sqlite.IsOpened);
myData[count++] = (lineCount + 1).ToString() +
" (" + Util.GetRunIVariableDistancesStringRow(runType.DistancesString, lineCount).ToString() + "m)";
myData[count++] = Util.TrimDecimals(
Util.GetSpeed(
Util.GetRunIVariableDistancesStringRow(runType.DistancesString, lineCount).ToString(), //distancesString (variable)
timeInterval,
metersSecondsPreferred)
, pDN);
}
else
{
myData[count++] = (lineCount + 1).ToString();
myData[count++] = Util.TrimDecimals(
Util.GetSpeed(
newRunI.DistanceInterval.ToString(), //distanceInterval (same for all subevents)
timeInterval,
metersSecondsPreferred)
, pDN);
}
myData[count++] = Util.TrimDecimals(timeInterval, pDN); //lapTime
myData[count++] = Util.TrimDecimals(getSplitTime(newRunI.IntervalTimesString, lineCount), pDN); //splitTime
myData[count++] = "";
myData[count++] = "-1"; //mark to non select here, select first line
return(myData);
}