Exemplo n.º 1
0
 /// <summary>
 /// Embed the specified person into this one.
 /// </summary>
 /// <param name="person">The person to embed.</param>
 public void Embed(Person person)
 {
     this._private   = this._private == null ? person._private : this._private;
     this._living    = this._living == null ? person._living : this._living;
     this._principal = this._principal == null ? person._principal : this._principal;
     this._gender    = this._gender == null ? person._gender : this._gender;
     if (this._displayExtension != null && person._displayExtension != null)
     {
         this._displayExtension.Embed(person._displayExtension);
     }
     else if (person._displayExtension != null)
     {
         this._displayExtension = person._displayExtension;
     }
     if (person._names != null)
     {
         this._names = this._names == null ? new List <Name>() : this._names;
         this._names.AddRange(person._names);
     }
     if (person._facts != null)
     {
         this._facts = this._facts == null ? new List <Fact>() : this._facts;
         this._facts.AddRange(person._facts);
     }
     if (person._fields != null)
     {
         this._fields = this._fields == null ? new List <Field>() : this._fields;
         this._fields.AddRange(person._fields);
     }
     base.Embed(person);
 }
Exemplo n.º 2
0
 /**
  * Build out this person with a display exension.
  *
  * @param display the display.
  * @return this
  */
 public Person SetDisplayExtension(DisplayProperties display)
 {
     DisplayExtension = display;
     return this;
 }
Exemplo n.º 3
0
 /**
  * Build out this person with a display exension.
  *
  * @param display the display.
  * @return this
  */
 public Person SetDisplayExtension(DisplayProperties display)
 {
     DisplayExtension = display;
     return(this);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Embed the specified person into this one.
 /// </summary>
 /// <param name="person">The person to embed.</param>
 public void Embed(Person person)
 {
     this._private = this._private == null ? person._private : this._private;
     this._living = this._living == null ? person._living : this._living;
     this._principal = this._principal == null ? person._principal : this._principal;
     this._gender = this._gender == null ? person._gender : this._gender;
     if (this._displayExtension != null && person._displayExtension != null)
     {
         this._displayExtension.Embed(person._displayExtension);
     }
     else if (person._displayExtension != null)
     {
         this._displayExtension = person._displayExtension;
     }
     if (person._names != null)
     {
         this._names = this._names == null ? new List<Name>() : this._names;
         this._names.AddRange(person._names);
     }
     if (person._facts != null)
     {
         this._facts = this._facts == null ? new List<Fact>() : this._facts;
         this._facts.AddRange(person._facts);
     }
     if (person._fields != null)
     {
         this._fields = this._fields == null ? new List<Field>() : this._fields;
         this._fields.AddRange(person._fields);
     }
     base.Embed(person);
 }