Exemplo n.º 1
0
 public WorkPointList(string[] data)
 {
     for (int i = 0; i < data.Length; i++)
     {
         string[] strArray = Regex.Split(data[i], "\t", RegexOptions.IgnoreCase);
         if (strArray.Length >= 6)
         {
             WorkPointInfo sigle = new WorkPointInfo();
             sigle.SH       = "1" == strArray[0].Trim();
             sigle.Enable   = strArray[1] == "True";
             sigle.Code     = strArray[2];
             sigle.Name     = strArray[3];
             sigle.TypeCode = strArray[4];
             sigle.type     = RouteNode.GetRouteType(sigle.TypeCode);
             sigle.TypeDesc = strArray[5];
             this.Add(sigle);
         }
     }
 }
Exemplo n.º 2
0
 public WorkPointList(string data)
 {
     if ((data != null) && !(data == string.Empty))
     {
         string[] strArray = Regex.Split(data, "\n", RegexOptions.IgnoreCase);
         for (int i = 0; i < strArray.Length; i++)
         {
             string[] strArray2 = Regex.Split(strArray[i], "\t", RegexOptions.IgnoreCase);
             if (strArray2.Length >= 5)
             {
                 WorkPointInfo sigle = new WorkPointInfo();
                 sigle.Code     = strArray2[0];
                 sigle.Name     = strArray2[1];
                 sigle.TypeCode = strArray2[2];
                 sigle.type     = RouteNode.GetRouteType(sigle.TypeCode);
                 sigle.TypeDesc = strArray2[3];
                 sigle.Enable   = strArray2[4] == "True";
                 this.Add(sigle);
             }
         }
     }
 }
Exemplo n.º 3
0
 public void Add(WorkPointInfo sigle)
 {
     base.List.Add(sigle);
 }