Ejemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="manId">GUID of husband</param>
 /// <param name="wifeId">GUID of wife</param>
 /// <param name="date">Date of marriage</param>
 /// <param name="place">Place of marriage</param>
 /// <param name="note">Notes</param>
 public Marriage(Guid manId, Guid wifeId, String date, String place, String note)
 {
     id = Guid.NewGuid();
     info = new LifeEvent(LifeEventTypes.Marriage, date, place, note);
     husband = manId;
     wife = wifeId;
 }
Ejemplo n.º 2
0
 public Person(TorpgenDB db)
 {
     birth = new LifeEvent(LifeEventTypes.Birth, "", "", "");
     death = new LifeEvent(LifeEventTypes.Death, "", "", "");
     _db = db;
 }
Ejemplo n.º 3
0
 //----------------------------------------------------------------------
 // METHODS
 //----------------------------------------------------------------------
 /// <summary>
 /// Constructor
 /// </summary>
 public Person()
 {
     birth = new LifeEvent(LifeEventTypes.Birth, "", "", "");
     death = new LifeEvent(LifeEventTypes.Death, "", "", "");
 }