Beispiel #1
0
 public static ascx_FolderView open(this ascx_FolderView folderView, string path)
 {
     if (folderView.notNull())
     {
         return(folderView.loadFolder(path));
     }
     return(folderView);
 }
Beispiel #2
0
        public static string virtualPath(this ascx_FolderView folderView, string path)
        {
            var virtualPath = path.remove(folderView.RootFolder);

            if (virtualPath.valid())
            {
                if (virtualPath[0] == '\\' || virtualPath[0] == '/')
                {
                    return(virtualPath);
                }
                else
                {
                    return("\\{0}".format(virtualPath));
                }
            }
            return(virtualPath);
        }