Exemple #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;
        }
Exemple #2
0
 /// <summary>
 /// Use this constructor to initialize the tree at creation
 /// </summary>
 //public CswNbtNodeKey( CswNbtResources CswNbtResources, CswNbtTreeKey inCswNbtTreeKey, string inTreePath, CswPrimaryKey inNodeId, NodeSpecies inNodeSpecies, Int32 inNodeTypeId, Int32 inObjectClassId, string inViewNodeUniqueId, string inNodeCountPath )
 public CswNbtNodeKey(CswNbtTreeKey inCswNbtTreeKey, CswPrimaryKey inNodeId, CswEnumNbtNodeSpecies inNodeSpecies, Int32 inNodeTypeId, Int32 inObjectClassId, string inViewNodeUniqueId, string inNodeCountPath)
 {
     //TreePath.FromString( inTreePath );
     TreeKey          = inCswNbtTreeKey;
     NodeId           = inNodeId;
     NodeSpecies      = inNodeSpecies;
     NodeTypeId       = inNodeTypeId;
     ObjectClassId    = inObjectClassId;
     ViewNodeUniqueId = inViewNodeUniqueId;
     NodeCountPath.FromString(inNodeCountPath);
 }