示例#1
0
 public void addNodeToCurrentPattern(int node)
 {
     if (!currentPattern.Contains(node) && !finishedPatternFrame)
     {
         currentPattern.Add(node);
         onNodeAddedToPattern.Invoke(node);
     }
 }
示例#2
0
 public void EventAddCore(object value)
 {
     if (NodeAddedEvent != null)
     {
         NodeAddedEvent.Invoke(this, new BinaryTreeEventArgs {
             Value = value
         });
     }
 }
示例#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);
     }
 }