Exemplo n.º 1
0
 private void GroupRemoved(object sender, TransparentContainer <Group> .ElementEventArgs <Group> e)
 {
     foreach (var p in e.Element.Content)
     {
         PatternRemoved(sender, new TransparentContainer <Pattern> .ElementEventArgs <Pattern>(p));
     }
     Nodes.Remove(nodeMap[e.Element]);
     e.Element.ElementAdded   -= PatternAdded;
     e.Element.ElementRemoved -= PatternRemoved;
 }
Exemplo n.º 2
0
        private void GroupAdded(object sender, TransparentContainer <Group> .ElementEventArgs <Group> e)
        {
            AddNode(nodeMap[e.Element.Project], e.Element, e.Element.Name, 1);
            e.Element.ElementAdded   += PatternAdded;
            e.Element.ElementRemoved += PatternRemoved;

            foreach (var p in e.Element.Content)
            {
                PatternAdded(sender, new TransparentContainer <Pattern> .ElementEventArgs <Pattern>(p));
            }
        }
Exemplo n.º 3
0
 private void PatternRemoved(object sender, TransparentContainer <Pattern> .ElementEventArgs <Pattern> e)
 {
     Nodes.Remove(nodeMap[e.Element]);
 }
Exemplo n.º 4
0
 private void PatternAdded(object sender, TransparentContainer <Pattern> .ElementEventArgs <Pattern> e)
 {
     AddNode(nodeMap[e.Element.Group], e.Element, e.Element.Name, 2);
 }