public static ascx_FolderView open(this ascx_FolderView folderView, string path) { if (folderView.notNull()) { return(folderView.loadFolder(path)); } return(folderView); }
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); }