Beispiel #1
0
 void OnQueryOnExpandedChanged(CheckableStorageObject Item, bool Value)
 {
     foreach (var i in Item.Children)
     {
         i.QueryOnExpanded = Value;
         OnQueryOnExpandedChanged(i, Value);
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Provider"></param>
 /// <param name="Root"></param>
 protected virtual void OnRefreshed(ISystemObjectProvider Provider, string Root)
 {
     SystemObjects.Clear();
     if (Provider != null)
     {
         foreach (var i in Provider.Query(Root))
         {
             var j = new CheckableStorageObject(i, SystemObjectProvider)
             {
                 QueryOnExpanded = QueryOnExpanded
             };
             SystemObjects.Add(j);
         }
     }
 }