Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Provider"></param>
 /// <param name="Root"></param>
 protected virtual void OnSystemProvided(ISystemProvider Provider, string Root)
 {
     SystemObjects.Clear();
     if (Provider != null)
     {
         foreach (var i in Provider.Query(Root))
         {
             SystemObjects.Add(new CheckableSystemObject(i, SystemProvider)
             {
                 QueryOnExpanded = QueryOnExpanded
             });
         }
     }
 }
Example #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);
         }
     }
 }