Ejemplo n.º 1
0
 public Boolean Add(string aLine)
 {
     if (Line1 == "")
     {
         Line1   = aLine;
         vCount1 = 1;
         return(true);
     }
     else if (Line2 == "")
     {
         string[] data = aLine.Split(new Char[] { ' ', '\t' });
         if (Line1.Contains(data[3]))
         {
             vCount1 += 1;
         }
         else
         {
             Line2   = aLine;
             vCount2 = 1;
         }
         return(true);
     }
     else
     {
         string[] data  = aLine.Split(new Char[] { ' ', '\t' });
         Boolean  found = false;
         if (Line1.Contains(data[3]))
         {
             found = true; vCount1 += 1;
         }
         if (Line2.Contains(data[3]))
         {
             found = true; vCount2 += 1;
         }
         return(found);
     }
 }