示例#1
0
 private static void AddTE(string name, string eType, string eDate, string ePlace)
 {
     // e.g. Marriage may not have father/mother info
     // don't bother recording events with no date or place
     if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(eDate) || string.IsNullOrEmpty(ePlace))
     {
         return;
     }
     Form1.timelineentry te = new Form1.timelineentry();
     te.Name      = name;
     te.Date      = eDate;
     te.Place     = ePlace;
     te.EventType = eType;
     TEList.Add(te);
 }
示例#2
0
 // OVERRIDE 2
 public frmShowEvents(string events, ref List <Form1.timelineentry> TEList)
 {
     InitializeComponent();
     EventsList         = events;
     rtbShowEvents.Text = EventsList;
     foreach (Form1.timelineentry t in TEList)
     {
         Form1.timelineentry x = new Form1.timelineentry();
         x.Name             = t.Name;
         x.Place            = t.Place;
         x.Longitude        = t.Longitude;
         x.Latitude         = t.Latitude;
         x.FormattedAddress = t.FormattedAddress;
         x.EventType        = t.EventType;
         x.Date             = t.Date;
         x.Status           = t.Status;
         LocalTEList.Add(x);
     }
 }