コード例 #1
0
            private ClassTreeNode(ClassNode node, ProjectView control, HashSet <ClassNode> seen)
            {
                Contract.Requires(node != null);
                Contract.Requires(control != null);

                ClassNode = node;

                this.control = control;

                Text = node.Name;

                ImageIndex         = 1;
                SelectedImageIndex = 1;

                RebuildClassHierarchy(seen ?? new HashSet <ClassNode> {
                    ClassNode
                });
            }
コード例 #2
0
 /// <summary>Constructor of the class.</summary>
 /// <param name="node">The class node.</param>
 /// <param name="control">The <see cref="ProjectView"/> instance this node should belong to.</param>
 public ClassTreeNode(ClassNode node, ProjectView control)
     : this(node, control, null)
 {
     Contract.Requires(node != null);
     Contract.Requires(control != null);
 }