Exemple #1
0
        public void AddTelephoneNumber(Telephone tel)
        {
            Telephone t = GetTelephoneNumber(tel.Type, tel.Location);

            if (t != null)
            {
                t.Remove();
            }

            this.AddChild(tel);
        }
Exemple #2
0
        public Telephone[] GetTelephoneNumbers()
        {
            ElementList el = SelectElements(typeof(Telephone));
            int         i  = 0;

            Telephone[] result = new Telephone[el.Count];
            foreach (Telephone tel in el)
            {
                result[i] = tel;
                i++;
            }
            return(result);
        }
Exemple #3
0
 public Telephone[] GetTelephoneNumbers()
 {
     ElementList el = SelectElements(typeof(Telephone));
     int i = 0;
     Telephone[] result = new Telephone[el.Count];
     foreach (Telephone tel in el)
     {
         result[i] = tel;
         i++;
     }
     return result;
 }
Exemple #4
0
        public void AddTelephoneNumber(Telephone tel)
        {
            Telephone t = GetTelephoneNumber(tel.Type, tel.Location);
            if (t != null)
                t.Remove();

            this.AddChild(tel);
        }