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;
        }
Exemple #2
0
        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;
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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;
        }
Exemple #7
0
        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);
        }
Exemple #8
0
        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);
        }