public Telephone(TelephoneLocation loc, TelephoneType type, string number) : this() { if (loc != TelephoneLocation.NONE) Location = loc; if (type != TelephoneType.NONE) Type = type; Number = number; }
public Telephone GetTelephoneNumber(TelephoneType type, TelephoneLocation loc) { foreach (Telephone phone in GetTelephoneNumbers()) { if (phone.Type == type && phone.Location == loc) { return(phone); } } return(null); }
/// <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; }
public Telephone GetTelephoneNumber(TelephoneType type, TelephoneLocation loc) { foreach (Telephone phone in GetTelephoneNumbers()) { if (phone.Type == type && phone.Location == loc) return phone; } return null; }