public DocumentNode(DocumentListNode parent, string documentName, string documentType) : base() { _documentType = documentType; _documentName = documentName; UpdateText(); ImageIndex = 8; SelectedImageIndex = ImageIndex; }
protected override void NameChanged(string newName) { _libraryName = newName; // Refresh children so that they get the new library name (the lib name is cached in these nodes) if (Built) { Nodes.Clear(); _documentListNode = null; _rootSchemaNode = null; Refresh(); } base.NameChanged(newName); }
protected override void InternalReconcileChildren() { // Schema if (Registered != (_rootSchemaNode != null)) { if (Registered) { _rootSchemaNode = new RootSchemaNode(_libraryName); InsertBaseNode(0, _rootSchemaNode); } else { Nodes.Remove(_rootSchemaNode); _rootSchemaNode = null; } } // Documents if ((_documentListNode == null) && (_libraryName != "System")) { _documentListNode = new DocumentListNode(_libraryName); AddBaseNode(_documentListNode); } }
public D4DocumentNode(DocumentListNode parent, string documentName, string documentType) : base(parent, documentName, documentType) { ImageIndex = 9; SelectedImageIndex = ImageIndex; }