public LibraryNode(LibraryNode node) { _capabilities = node._capabilities; _contextMenuID = node._contextMenuID; _displayData = node._displayData; _name = node._name; _tooltip = node._tooltip; _type = node._type; _children = new List <LibraryNode>(); foreach (LibraryNode child in node._children) { _children.Add(child); } _clipboardFormats = new List <VSOBJCLIPFORMAT>(); foreach (VSOBJCLIPFORMAT format in node._clipboardFormats) { _clipboardFormats.Add(format); } _filteredView = new Dictionary <LibraryNodeType, LibraryNode>(); _updateCount = node._updateCount; }
internal void RemoveNode(LibraryNode node) { lock (_children) { _children.Remove(node); } _updateCount++; }
internal void AddNode(LibraryNode node) { lock (_children) { _children.Add(node); } _updateCount++; }
public LibraryNode(LibraryNode node) { _capabilities = node._capabilities; _contextMenuID = node._contextMenuID; _displayData = node._displayData; _name = node._name; _tooltip = node._tooltip; _type = node._type; _children = new List<LibraryNode>(); foreach (LibraryNode child in node._children) _children.Add(child); _clipboardFormats = new List<VSOBJCLIPFORMAT>(); foreach (VSOBJCLIPFORMAT format in node._clipboardFormats) _clipboardFormats.Add(format); _filteredView = new Dictionary<LibraryNodeType, LibraryNode>(); _updateCount = node._updateCount; }