/// <summary> /// Visits the event. /// </summary> /// <param name="e">The event to visit.</param> public override void VisitEvent(Gx.Conclusion.Event e) { if (e.Id != null) { this.dictionary.Add(e.Id, e); } base.VisitEvent(e); }
public virtual void VisitEvent(Event @event) { this.contextStack.Push(@event); VisitSubject(@event); DateInfo date = @event.Date; if (date != null) { date.Accept(this); } PlaceReference place = @event.Place; if (place != null) { place.Accept(this); } List<EventRole> roles = @event.Roles; if (roles != null) { foreach (EventRole role in roles) { role.Accept(this); } } this.contextStack.Pop(); }
/** * Build this out with a event. * @param event The event. * @return this. */ public Gedcomx SetEvent(Event @event) { AddEvent(@event); return this; }
/// <summary> /// Add a event to the data set. /// </summary> /// <param name="event">The event to be added.</param> public void AddEvent(Event @event) { if (@event != null) { if (Events == null) Events = new List<Event>(); Events.Add(@event); } }
/// <summary> /// Visits the event. /// </summary> /// <param name="e">The event to visit.</param> public virtual void VisitEvent(Event e) { this.contextStack.Push(e); VisitSubject(e); DateInfo date = e.Date; if (date != null) { VisitDate(date); } PlaceReference place = e.Place; if (place != null) { VisitPlaceReference(place); } if (e.Roles != null) { foreach (EventRole role in e.Roles) { VisitEventRole(role); } } this.contextStack.Pop(); }
public override void VisitEvent(Event @event) { BindIfNeeded(@event); base.VisitEvent(@event); }