Пример #1
0
 public void SetMiddleNames(params string[] middleNames)
 {
     if (_middleNames == null)
     {
         _middleNames = new LabelCollection(this);
     }
     else
     {
         _middleNames.Clear();
     }
     foreach (string item in middleNames)
     {
         _middleNames.Add(item);
     }
 }
Пример #2
0
 /// <summary>
 ///   Initialise the FacsimileNumbers to the list of numbers. Clears any existing numbers, further lines can be added through the FacsimileNumbers property.
 /// </summary>
 public LabelCollection SetFacsimileNumbers(params string[] numbers)
 {
     if (_facsimileNumbers == null)
     {
         _facsimileNumbers = new LabelCollection(this);
     }
     else
     {
         _facsimileNumbers.Clear();
     }
     foreach (string num in numbers)
     {
         _facsimileNumbers.Add(num);
     }
     return(_facsimileNumbers);
 }
Пример #3
0
 /// <summary>
 ///   Initialise the ElectronicMailAddress the list of email addresses. Clears any existing addresses, further lines can be added through the ElectronicMailAddress property.
 /// </summary>
 public LabelCollection SetElectronicMailAddress(params string[] emails)
 {
     if (_electronicMailAddresses == null)
     {
         _electronicMailAddresses = new LabelCollection(this);
     }
     else
     {
         _electronicMailAddresses.Clear();
     }
     foreach (string email in emails)
     {
         _electronicMailAddresses.Add(email);
     }
     return(_electronicMailAddresses);
 }