예제 #1
0
        public Telephone(TelephoneLocation loc, TelephoneType type, string number) : this()
        {
            if (loc != TelephoneLocation.NONE)
                Location = loc;

            if (type != TelephoneType.NONE)
                Type = type;

            Number = number;
        }
예제 #2
0
 public Telephone GetTelephoneNumber(TelephoneType type, TelephoneLocation loc)
 {
     foreach (Telephone phone in GetTelephoneNumbers())
     {
         if (phone.Type == type && phone.Location == loc)
         {
             return(phone);
         }
     }
     return(null);
 }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="type"></param>
 /// <param name="location"></param>
 /// <returns></returns>
 public VTelephone GetTelephone(TelephoneType type, TelephoneLocation location)
 {
     foreach (VTelephone tel in GetTelephoneList())
     {
         if ((tel.Location == location) && (tel.Type == type))
         {
             return(tel);
         }
     }
     return(null);
 }
        public Telephone(TelephoneLocation loc, TelephoneType type, string number) : this()
        {
            if (loc != TelephoneLocation.NONE)
            {
                this.Location = loc;
            }

            if (type != TelephoneType.NONE)
            {
                this.Type = type;
            }

            this.Number = number;
        }
예제 #5
0
파일: Vcard(2).cs 프로젝트: phiree/dzdocs
 public Telephone GetTelephoneNumber(TelephoneType type, TelephoneLocation loc)
 {
     foreach (Telephone phone in GetTelephoneNumbers())
     {
         if (phone.Type == type && phone.Location == loc)
             return phone;
     }
     return null;
 }