Exemplo n.º 1
0
        public TimelineBuilder(
            TimelineBand band,
            Canvas canvas,
            DataTemplate template,
            DataTemplate textTemplate,
            int columnCount,
            TimelineCalendar timeline,
            DataTemplate eventTemplate,
            double maxEventHeight,
            bool assignRows,
            DateTime currDateTime,
            DataTemplate currentTimeTagTemplate
            )
        {
            m_parent        = band;
            m_eventTemplate = eventTemplate;
            m_canvas        = canvas;
            m_template      = template;;
            m_columnCount   = columnCount;
            //m_timeline = timeline;
            m_markerTemplate = textTemplate;

            m_dispEvents             = new Dictionary <TimelineEvent, TimelineDisplayEvent>();
            m_maxEventHeight         = maxEventHeight;
            m_currentTimeTagTemplate = currentTimeTagTemplate;
            CurrentDateTime          = currDateTime;
        }
Exemplo n.º 2
0
 public TimelineDisplayEvent(TimelineEvent e, TimelineBand band, TimelineBuilder builder)
 {
     _timelineEvent = e;
     if (_timelineEvent != null)
     {
         _timelineEvent.PropertyChanged += OnEventPropertyChanged;
     }
     _selected       = e.Selected;
     TimelineBuilder = builder;
 }