예제 #1
0
 public DocumentNode(DocumentListNode parent, string documentName, string documentType) : base()
 {
     _documentType = documentType;
     _documentName = documentName;
     UpdateText();
     ImageIndex         = 8;
     SelectedImageIndex = ImageIndex;
 }
예제 #2
0
 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);
 }
예제 #3
0
        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);
            }
        }
예제 #4
0
 public D4DocumentNode(DocumentListNode parent, string documentName, string documentType) : base(parent, documentName, documentType)
 {
     ImageIndex         = 9;
     SelectedImageIndex = ImageIndex;
 }