Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SolutionFolder"/> class.
        /// </summary>
        /// <param name="parent">The parent folder path.</param>
        /// <param name="path">The folder path.</param>
        /// <param name="properties">The folder properties.</param>
        public SolutionFolder(ISolutionFolder parent, IFolderPath path, IFolderProperties properties)
            : base(parent, path, properties)
        {
            if (parent == null)
            {
                return;
            }

            ChildrenInternal = new SolutionTreeNodeCollection(this, parent.NodeComparer);
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SolutionFolder"/> class.
 /// </summary>
 /// <param name="path">The folder path.</param>
 /// <param name="properties">The folder properties.</param>
 /// <param name="nodeComparer">The node comparer.</param>
 public SolutionFolder(IFolderPath path, IFolderProperties properties, IComparer <ITreeNodePath> nodeComparer)
     : base(null, path, properties)
 {
     ChildrenInternal = new SolutionTreeNodeCollection(this, nodeComparer);
 }