public ContactList getCandidatesForJabberID(string jabberID) { ContactList candidates = new ContactList(); IEnumerator ie = GetEnumerator(); NTContact e; while (ie.MoveNext()) { e = (NTContact)ie.Current; if (e.NTJabberID.Trim().ToUpper() == jabberID.Trim().ToUpper()) { candidates.Add(e); } } return candidates; }
public ContactList getCandidatesForJabberID(string jabberID) { ContactList candidates = new ContactList(); IEnumerator ie = GetEnumerator(); NTContact e; while (ie.MoveNext()) { e = (NTContact)ie.Current; if (e.NTJabberID.Trim().ToUpper() == jabberID.Trim().ToUpper()) { candidates.Add(e); } } return(candidates); }
public ContactList getCandidatesForNumber(string number) { ContactList candidates = new ContactList(); IEnumerator ie = GetEnumerator(); NTContact e; number = number.ToUpper(); while (ie.MoveNext()) { e = (NTContact)ie.Current; if (e.NTHomeTelephoneNumber.StartsWith(number)) { candidates.Add(e); } } return candidates; }
public ContactList getCandidatesForNumber(string number) { ContactList candidates = new ContactList(); IEnumerator ie = GetEnumerator(); NTContact e; number = number.ToUpper(); while (ie.MoveNext()) { e = (NTContact)ie.Current; if (e.NTHomeTelephoneNumber.StartsWith(number)) { candidates.Add(e); } } return(candidates); }
public ContactList getCandidatesForName(string[] keys) { ContactList candidates = new ContactList(); IEnumerator ie = GetEnumerator(); NTContact e; foreach (string search in keys) { while (ie.MoveNext()) { e = (NTContact)ie.Current; if (e.NTLastName.ToUpper().StartsWith(search.ToUpper())) { candidates.Add(e); } } ie.Reset(); } return(candidates); }
public ContactList getCandidatesForName(string[] keys) { ContactList candidates = new ContactList(); IEnumerator ie = GetEnumerator(); NTContact e; foreach (string search in keys) { while (ie.MoveNext()) { e = (NTContact)ie.Current; if (e.NTLastName.ToUpper().StartsWith(search.ToUpper())) { candidates.Add(e); } } ie.Reset(); } return candidates; }
public ContactList getCandidatesForNumber(string number) { ContactList result = new ContactList(); try { lock (this) { for (int i = this.Count - 1; i >= 0; i--) { if (this[i].NTHomeTelephoneNumber.StartsWith(number) && this[i].NTDeleted != "true") { result.Add(this[i]); } } } } catch (Exception) { } return(result); }
public ContactList getCandidatesForJabberID(string jabberID) { ContactList result = new ContactList(); try { lock (this) { for (int i = this.Count - 1; i >= 0; i--) { if (this[i].NTJabberID.Trim().ToUpper() == jabberID.Trim().ToUpper() && this[i].NTDeleted != "true") { result.Add(this[i]); } } } } catch (Exception) { } return(result); }