Single node inside the tree of the libraries in the object browser or class view.
Inheritance: IVsSimpleObjectList2, IVsNavInfoNode
示例#1
0
        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;
        }
示例#2
0
        internal void RemoveNode(LibraryNode node)
        {
            lock (_children)
            {
                _children.Remove(node);
            }

            _updateCount++;
        }
示例#3
0
        internal void AddNode(LibraryNode node)
        {
            lock (_children)
            {
                _children.Add(node);
            }

            _updateCount++;
        }
示例#4
0
文件: LibraryNode.cs 项目: rsdn/nitra
		internal void RemoveNode(LibraryNode node)
		{
			lock (_children)
			{
				_children.Remove(node);
			}

			_updateCount++;
		}
示例#5
0
文件: LibraryNode.cs 项目: rsdn/nitra
		internal void AddNode(LibraryNode node)
		{
			lock (_children)
			{
				_children.Add(node);
			}

			_updateCount++;
		}
示例#6
0
文件: LibraryNode.cs 项目: rsdn/nitra
		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;
		}