/// <summary>
 /// Constructor, that accepts data from an existing Address
 /// </summary>
 /// <param name="address">Address</param>
 public Address(Address address)
 {
     this.id      = address.Id;
     this.street  = address.Street;
     this.place   = address.Place;
     this.zipTown = address.ZipTown;
 }
 /// <summary>
 /// Constructor to add address from Db to list
 /// </summary>
 /// <param name="id">int</param>
 /// <param name="street">string</param>
 /// <param name="place">string</param>
 /// <param name="zipTown">ZipTown</param>
 public Address(int id, string street, string place, ZipTown zipTown)
 {
     this.id      = id;
     this.street  = street;
     this.place   = place;
     this.zipTown = zipTown;
 }
 /// <summary>
 /// Empty Constructor
 /// </summary>
 public Address()
 {
     this.id      = 0;
     this.street  = "";
     this.place   = "";
     this.zipTown = new ZipTown();
 }
Beispiel #4
0
 /// <summary>
 /// Constructor, that accepts data from an existing ZipTown
 /// </summary>
 /// <param name="zipTown">ZipTown</param>
 public ZipTown(ZipTown zipTown)
 {
     this.id   = zipTown.Id;
     this.zip  = zipTown.zip;
     this.town = zipTown.town;
 }
 /// <summary>
 /// Constructor to add a new Indexed Job Description
 /// </summary>
 /// <param name="index">int</param>
 /// <param name="zipTown">JobDescription</param>
 public IndexedZipTown(int index, ZipTown zipTown) : base(zipTown)
 {
     this.index = index;
 }