/// <summary> /// </summary> public AddUserForm(List <User> AllUsers) { foreach (User user in AllUsers) { PotentialUsers.Add(user.Username); } List <string> DomainUsers = DomainUtils.GetDomainUsers(); foreach (string user in DomainUsers) { if (!PotentialUsers.Contains(user)) { PotentialUsers.Add(user); } } PotentialUsers.Sort(); InitializeComponent(); }