Exemplo n.º 1
0
 public void AddEvent(TimeLineEvent timeLineEvent)
 {
     // we use lock to make this method thread safe
     lock (mEvents)
     {
         mEvents.Add(timeLineEvent);
     }
 }
Exemplo n.º 2
0
 public void AddSubEvent(TimeLineEvent timeLineEvent)
 {
     timeLineEvent.Level = this.Level + 1;
     mChildren.Add(timeLineEvent);
 }