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