Esempio n. 1
0
        /// <summary>
        ///     Constructor
        /// </summary>
        /// <param name="View">Tree View</param>
        /// <param name="CswNbtResources">The CswNbtResources object</param>
        /// <param name="CswNbtNodeWriter">A CswNbtNodeWriter object</param>
        /// <param name="CswNbtNodeCollection">A reference to the CswNbtNodeCollection</param>
        /// <param name="IsFullyPopulated"></param>
        public CswNbtTreeNodes(string TreeName, CswNbtView View, CswNbtResources CswNbtResources,
                               CswNbtNodeCollection CswNbtNodeCollection, bool IsFullyPopulated)
        {
            _CswNbtResources      = CswNbtResources;
            _CswNbtNodeCollection = CswNbtNodeCollection;
            _CswNbtTreeKey        = new CswNbtTreeKey(_View);
            _View             = View;
            _IsFullyPopulated = IsFullyPopulated;


            NodesAndParents = new Dictionary <CswNbtNodeKey, CswNbtNodeKey>();
            NodesById       = new Dictionary <CswPrimaryKey, Collection <CswNbtNodeKey> >();

            // Make Tree Node
            _makeNbtTreeNode(null,
                             Elements.Tree,
                             null,
                             string.Empty,
                             Int32.MinValue,
                             Int32.MinValue,
                             string.Empty,
                             false,
                             null,
                             CswEnumNbtNodeSpecies.Plain,
                             true,
                             false,
                             true,
                             false,
                             null,
                             out _TreeNode,
                             out _TreeNodeKey);

            _TreeNode.TreeName = TreeName;
        }
Esempio n. 2
0
 public CswNbtTreeBuilder(CswNbtResources CswNbtResources, CswNbtNodeCollection CswNbtNodeCollection)
 {
     _CswNbtResources      = CswNbtResources;
     _CswNbtNodeCollection = CswNbtNodeCollection;
 }//ctor