Exemplo n.º 1
0
 public WebNode(RootNode rootNode)
 {
     RootNode = rootNode;
     webs     = new WebsNode(this);
     lists    = new ListsNode(this);
     children = new ObservableHierarchyList <IExplorerNode>(new IExplorerNode[] { webs, lists });
 }
Exemplo n.º 2
0
        IDisposable LoadChildren()
        {
            return(parent.Lists.Get(
                       delegate(ObservableList <List> source)
            {
                if (source == null)
                {
                    Children = null;
                }
                else
                {
                    JArray <List> ar = new JArray <List>((int)source.Count);
                    for (int i = 0; i < ar.Length; i++)
                    {
                        ar[i] = source[i];
                    }

                    ar.Sort(CompareByTitle);
                    Children = new ObservableHierarchyList <List>(ar);
                }

                lazyList = lazyList.EnsureDispose();
            },
                       lazyList.SetException));
        }