Inheritance: IExplorerItemFactory
 public IExplorerItem Load(Guid workSpaceId, bool reload = false)
 {
     if (_root == null || reload)
     {
         _root = ExplorerItemFactory.CreateRootExplorerItem(EnvironmentVariables.GetWorkspacePath(workSpaceId), workSpaceId);
     }
     return(_root);
 }
        public IExplorerItem UpdateItem(IResource resource)
        {
            var parentItem = Find(item => item.ResourcePath.ToLowerInvariant().TrimEnd('\\') == resource.GetSavePath().ToLowerInvariant().TrimEnd('\\'));

            if (parentItem != null)
            {
                var newExplorerItem = ExplorerItemFactory.CreateResourceItem(resource, GlobalConstants.ServerWorkspaceID);
                parentItem.Children.Add(newExplorerItem);
                newExplorerItem.Parent = parentItem;
                return(newExplorerItem);
            }
            return(null);
        }
 public IExplorerItem Load(string type, string filter)
 {
     return(ExplorerItemFactory.CreateRootExplorerItem(type, Path.Combine(EnvironmentVariables.GetWorkspacePath(Guid.Empty), filter), Guid.Empty));
 }
 public List <string> LoadDuplicate()
 {
     return(ExplorerItemFactory.GetDuplicatedResourcesPaths());
 }
 public IExplorerItem Load(string type, Guid workSpaceId)
 {
     return(ExplorerItemFactory.CreateRootExplorerItem(type, EnvironmentVariables.GetWorkspacePath(workSpaceId), workSpaceId));
 }
Exemple #6
0
 public List <string> LoadDuplicate() => ExplorerItemFactory.GetDuplicatedResourcesPaths();