public void AddAltNames(DataTable table) { foreach (DataRow row in table.Rows) { AltNames.Add((string)row["name"]); } }
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); }