Exemple #1
0
        private void ParseRawLine(string line)
        {
            // skip comment line
            if (line.StartsWith("#") || line.Length < 4)
            {
                return;
            }

            string[] cols = line.Split(" ".ToCharArray(), 9);

            // if normal key
            if (cols.Length == 9)
            {
                MyRow r = new MyRow();
                r.Set(cols);
                Rows.Add(r);
            }
            // if dx key
            else
            {
                MyRowDx dx = new MyRowDx();
                dx.Set(cols);

                LinkDx(dx);
            }
        }
Exemple #2
0
 private void LinkDx(MyRowDx dx)
 {
     foreach (var r in Rows)
     {
         if (r.Function == dx.Function)
         {
             r.Dx = dx;
             break;
         }
     }
 }