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