private void RefreshIsAncestorLocked(TimelineItem timelineItem)
 {
     for (int index = 0; index < timelineItem.Children.Count; ++index)
     {
         TimelineItem       timelineItem1      = timelineItem.Children[index];
         Item3DTimelineItem item3DtimelineItem = timelineItem1 as Item3DTimelineItem;
         if (item3DtimelineItem != null)
         {
             item3DtimelineItem.RefreshIsLocked();
         }
         else
         {
             ElementTimelineItem elementTimelineItem = timelineItem1 as ElementTimelineItem;
             if (elementTimelineItem != null)
             {
                 elementTimelineItem.RefreshIsAncestorLocked();
             }
             else
             {
                 StyleTimelineItem styleTimelineItem = timelineItem1 as StyleTimelineItem;
                 if (styleTimelineItem != null)
                 {
                     styleTimelineItem.RefreshIsAncestorLocked();
                 }
                 else
                 {
                     this.RefreshIsAncestorLocked(timelineItem1);
                 }
             }
         }
     }
 }
Example #2
0
 public void RefreshIsAncestorLocked()
 {
     this.OnPropertyChanged("IsSelectable");
     foreach (TimelineItem timelineItem in (Collection <TimelineItem>) this.Children)
     {
         ElementTimelineItem elementTimelineItem = timelineItem as ElementTimelineItem;
         if (elementTimelineItem != null)
         {
             elementTimelineItem.RefreshIsAncestorLocked();
         }
     }
 }