예제 #1
0
        private void EdgeAdded(VertexChangeEventArgs e)
        {
            if (!IsFilled)
            {
                TreeVisualiser.ClearAllItems_Reccurent(this);
            }

            Items.Add(TreeParent.GetTreeViewItem(e.Edge, true));
        }
예제 #2
0
        protected override void OnExpanded(RoutedEventArgs ea)
        {
            if (IsFilled == false)
            {
                TreeVisualiser.ClearAllItems_Reccurent(this);

                foreach (IEdge ee in ((IEdge)Tag).To)
                {
                    Items.Add(TreeParent.GetTreeViewItem(ee, true));
                }
            }

            IsFilled = true;

            //base.OnExpanded(ea);
        }