Beispiel #1
0
 public void addNodeToCurrentPattern(int node)
 {
     if (!currentPattern.Contains(node) && !finishedPatternFrame)
     {
         currentPattern.Add(node);
         onNodeAddedToPattern.Invoke(node);
     }
 }
Beispiel #2
0
 public void EventAddCore(object value)
 {
     if (NodeAddedEvent != null)
     {
         NodeAddedEvent.Invoke(this, new BinaryTreeEventArgs {
             Value = value
         });
     }
 }
Beispiel #3
0
 public void Add(T node)
 {
     if (IsLocked)
     {
         _pending.Add(new KeyValuePair <T, PendingChange>(node, PendingChange.Add));
     }
     else
     {
         _nodes.Add(node);
         NodeAddedEvent.Invoke(node);
     }
 }