Ejemplo n.º 1
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));
        }
Ejemplo n.º 2
0
        IDisposable LoadChildren()
        {
            return(parent.Webs.Get(
                       delegate(ObservableList <Web> source)
            {
                if (source == null)
                {
                    Children = null;
                }
                else
                {
                    sorter.Source = source;
                    Children = sorter.Target;
                }

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