コード例 #1
0
 /// <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);
 }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: Gedcomx.cs プロジェクト: Herbert42/gedcomx-csharp
 /**
  * Build this out with a event.
  * @param event The event.
  * @return this.
  */
 public Gedcomx SetEvent(Event @event)
 {
     AddEvent(@event);
     return this;
 }
コード例 #4
0
ファイル: Gedcomx.cs プロジェクト: Herbert42/gedcomx-csharp
 /// <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);
     }
 }
コード例 #5
0
        /// <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();
        }
コード例 #6
0
 public override void VisitEvent(Event @event)
 {
     BindIfNeeded(@event);
     base.VisitEvent(@event);
 }