Example #1
0
        public void AddElement(double m_seconds, double action)
        {
            TimeLineElement te = new TimeLineElement(TimeLineInnerHeight, m_seconds, action);

            TElements.Add(te);
            mainCanvas.Children.Add(te);

            Canvas.SetTop(te, ElementTop);
            Canvas.SetLeft(te, (TimeLineWidth * (m_seconds - StartMSeconds) / (EndMSeconds - StartMSeconds)) - 1);
        }
Example #2
0
 private void GenerateMarkerElements()
 {
     foreach (TimeLineMark tMark_s in TMarks)
     {
         TimeLineElement te = new TimeLineElement(TimeLineInnerHeight, tMark_s.Time, 0);
         TElements.Add(te);
         mainCanvas.Children.Add(te);
         Canvas.SetTop(te, ElementTop);
         Canvas.SetLeft(te, (TimeLineWidth * (tMark_s.Time - StartMSeconds) / (EndMSeconds - StartMSeconds)) - 1);
     }
 }