Exemplo n.º 1
0
 protected void InitializeChildren()
 {
     if (AreChildrenInitialized)
     {
         return;
     }
     _children = new List <EventsTreeItem>();
     if (_event.HasChildren)
     {
         foreach (IEvent @event in _event.Children)
         {
             EventsTreeItem item = new EventsTreeItem(@event, _eventMessageBuilder, this, _treeView, _level + 1, EventsSortType);
             _children.Add(item);
         }
         EventTreeItemSorter.Sort(_children, _eventsSortType);
         DispatcherExtensions.DoEvents();
     }
 }
Exemplo n.º 2
0
 protected void InitializeChildren()
 {
     if (AreChildrenInitialized)
     {
         return;
     }
     if (EventMessageBuilder == null || Events == null)
     {
         return;
     }
     _children = new List <EventsTreeItem>();
     _board.Clear();
     foreach (IEventTree @event in Events)
     {
         EventsTreeItem item = new EventsTreeItem(@event, EventMessageBuilder, null, this, 0, EventsSortType);
         _children.Add(item);
     }
     EventTreeItemSorter.Sort(_children, EventsSortType);
     foreach (EventsTreeItem item in _children)
     {
         _board.Add(item);
     }
 }
Exemplo n.º 3
0
 private void Sort()
 {
     _treeView.RemoveRange(BoardIndex + 1, _children.Count);
     EventTreeItemSorter.Sort(_children, _eventsSortType);
     _treeView.InsertRange(BoardIndex + 1, _children);
 }