Пример #1
0
 public void AddAltNames(DataTable table)
 {
     foreach (DataRow row in table.Rows)
     {
         AltNames.Add((string)row["name"]);
     }
 }
Пример #2
0
 private void AddName(string name)
 {
     if (string.IsNullOrEmpty(name))
     {
         return;
     }
     name = name.Trim();
     if (Name == null)
     {
         Name = name;
     }
     if (Name == name || AltNames.Contains(name))
     {
         return;
     }
     AltNames.Add(name);
 }