TrakHound_UI.Timeline.TimelineTray.ResetEvents C# (CSharp) Method

ResetEvents() public method

Resets the timeline using a list of events to provide to the UI.
public ResetEvents ( List events, bool fixDates = true ) : void
events List The events to reset the UI with.
fixDates bool
return void
        public void ResetEvents(
            List<TimelineEvent>                         events,
            bool                                        fixDates = true
        )
        {
            //
            // fix event dates
            //
            if (fixDates)
            { 
                foreach (TimelineEvent e in events)
                {
                    if (!e.IsDuration)
                    {
                        e.EndDate = e.StartDate;
                    }
                }
            }

            m_eventStore = new TimelineEventStore(events);
            ClearSelection();
            RefreshEvents();
        }

Same methods

TimelineTray::ResetEvents ( System.Xml.Linq.XDocument doc ) : void
TimelineTray::ResetEvents ( string xml ) : void