Exemplo n.º 1
0
    public void FillTxt(string range, string content)
    {
        string[] rangeArr = range.Split('-');

        start = Convert.ToInt32(rangeArr[0]);
        end   = Convert.ToInt32(rangeArr[1]);

        iFSInfo.FillTxt(content);
    }
Exemplo n.º 2
0
    public void FillTxt(string content)
    {
        if (id <= 10000)
        {
            return;
        }
        if (content != null)
        {
            string[] txtArr = content.Split('\n');

            foreach (string txt in txtArr)
            {
                string[] txts = txt.Split('|');
                switch (txts[0].ToLower())
                {
                case "d":
                    defaultFill = new IFSInfo();
                    defaultFill.FillTxt(txts[2]);
                    break;

                case "g":
                    IntervalInfo intervalInfo = new IntervalInfo();
                    intervalInfo.FillTxt(txts[1], txts[2]);
                    intervals.Add(intervalInfo);
                    break;

                case "s":
                    IFSInfo iFSInfo = new IFSInfo();
                    int     step    = Convert.ToInt32(txts[1]);
                    iFSInfo.FillTxt(txts[2]);
                    specifics.Add(step, iFSInfo);
                    break;

                case "c":
                    CopyFillInfo copyInfo = new CopyFillInfo();
                    copyInfo.FillTxt(txts[1], txts[2]);
                    copys.Add(copyInfo);
                    break;
                }
            }
        }
    }