void OpenNextFolder(DirectoryInfo currentDirectory, FolderDirection folderDirection) { var folder = currentDirectory.WalkNextFolder(folderDirection); if (folder == null) { return; } OpenFolderImpl(folder); }
public static DirectoryInfo WalkNextFolder(this DirectoryInfo currentDirectory, FolderDirection folderDirection) { switch (folderDirection) { case FolderDirection.Forward: return(currentDirectory.WalkNextFolder()); case FolderDirection.Backward: return(currentDirectory.WalkPreviousFolder()); default: throw new ArgumentOutOfRangeException(nameof(folderDirection), folderDirection, null); } }
/// <summary> /// This method returns all the folders belonging to the authenticated user. /// </summary> /// <param name="user_id">The ID of the user.</param> /// <param name="direction">The sort direction of the results</param> /// <param name="sort">The way to sort the results.</param> /// <param name="page">The page number of the results to show.</param> /// <param name="per_page">The number of items to show on each page of results, up to a maximum of 100.</param> /// <returns></returns> public virtual RestResult <Pagination <Project> > GetAllTheFoldersThatBelongToTheUser(int user_id, FolderDirection direction, FolderSort sort, int?page = null, int?per_page = null) => throw new NotImplementedException();