TreeViewMultiChronopic.getSubLineToStore C# (CSharp) Метод

getSubLineToStore() защищенный Метод

protected getSubLineToStore ( System myObject, int lineCount ) : string[]
myObject System
lineCount int
Результат string[]
    protected override string[] getSubLineToStore(System.Object myObject, int lineCount)
    {
        MultiChronopic mc = (MultiChronopic)myObject;
        //write line for treeview
        string [] myData = new String [19+1];

        if(mc.Type == Constants.RunAnalysisName) {
            if(lineCount == 0) {
                int count = 0;
                myData[count++] = Catalog.GetString("Stride");
                myData[count++] = "TC";
                myData[count++] = "TF";
                myData[count++] = "TT";
                myData[count++] = Catalog.GetString("Freq.");
                myData[count++] = Catalog.GetString("Width");
                myData[count++] = Catalog.GetString("Height");
                myData[count++] = Catalog.GetString("Angle");
                for(int i=0; i<10;i++)
                    myData[count++] = "";

                myData[count++] = ""; //description column
                myData[count++] = "-1"; //mark to non select here, select first line
                return mc.DeleteCols(myData, maxCPs, false);
            } else {
                ArrayList array = mc.AsArrayList(pDN);
                return mc.DeleteCols( array[lineCount-1].ToString().Split(new char[] {':'} ), maxCPs, false );
            }
        }

        //not runAnalsysis
        if(lineCount == 0) {
            int count=0;
            myData[count++] = "0";
            myData[count++] = "0";
            myData[count++] = Util.BoolToInOut(Util.IntToBool(mc.Cp1StartedIn));
            myData[count++] = Util.BoolToInOut(Util.IntToBool(mc.Cp2StartedIn));
            myData[count++] = Util.BoolToInOut(Util.IntToBool(mc.Cp3StartedIn));
            myData[count++] = Util.BoolToInOut(Util.IntToBool(mc.Cp4StartedIn));

            for(int i=0; i<12;i++)
                myData[count++] = "";

            myData[count++] = ""; //description column
            myData[count++] = "-1"; //mark to non select here, select first line
            return mc.DeleteCols(myData, maxCPs, false);
        } else {
            ArrayList array = mc.AsArrayList(pDN);
            return mc.DeleteCols( array[lineCount-1].ToString().Split(new char[] {':'} ), maxCPs, false );
        }
    }