Example #1
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);
 }
Example #2
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);
            }
        }