Ejemplo n.º 1
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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 6
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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }