예제 #1
0
 private void GetSubFolders(bool value)
 {
     if (value && SubFolders.Any(o => string.IsNullOrEmpty(o.FolderName)))
     {
         SubFolders.Clear();
         var subfolders = Directory.GetDirectories(Path);
         foreach (var item in subfolders)
         {
             try
             {
                 SubFolders.Add(new FolderViewModel(item, this));
             }
             catch (Exception e) { }
         }
     }
 }