private void LoadCache()
 {
     if (!FileUtility.Exists(LastSessionPath) || (FolderTree =
                                                      FolderManagerSaveManager.LoadFolderTree(LastSessionPath, false)) == null)
     {
         NewFolderTree();
         return;
     }
     FolderManager.RepaintClients();
 }
        public void LoadFolderTree(string path)
        {
            if (!FileUtility.Exists(path) || (FolderTree = FolderManagerSaveManager.LoadFolderTree(path, true)) ==
                null)
            {
                NewFolderTree();
                return;
            }
            OpenedCanvasPath = path;

            SaveCache();
            FolderManager.RepaintClients();
        }
 private void SaveCache()
 {
     FolderManagerSaveManager.SaveFolderTree(LastSessionPath, FolderTree, false);
 }
 public void SaveFolderTree(string path)
 {
     FolderTree.TreeName = path;
     FolderManagerSaveManager.SaveFolderTree(path, FolderTree, true);
     FolderManager.RepaintClients();
 }