TreeViewJumpsRj.printTotal C# (CSharp) Method

printTotal() protected method

protected printTotal ( System myObject, int cols ) : string[]
myObject System
cols int
return string[]
    protected override string[] printTotal(System.Object myObject, int cols)
    {
        JumpRj newJumpRj = (JumpRj)myObject;

        string [] myData = new String [getColsNum()];
        int count = 0;
        myData[count++] = Catalog.GetString("Total");
        myData[count++] = Util.TrimDecimals(Util.GetTotalTime(newJumpRj.TcString).ToString(), pDN);
        myData[count++] = Util.TrimDecimals(Util.GetTotalTime(newJumpRj.TvString).ToString(), pDN);
        myData[count++] = ""; //weight
        myData[count++] = ""; //fall
        myData[count++] = ""; //height
        if (preferences.showPower)
            myData[count++] = "";
        if (preferences.showStiffness)
            myData[count++] = "";
        if (preferences.showInitialSpeed)
            myData[count++] = "";
        if (preferences.showQIndex || preferences.showDjIndex)
            myData[count++] = "";

        myData[count++] = "";

        myData[count++] = "-1"; //mark to non select here, select first line

        return myData;
    }