public void FileManager() { SelectDisk(); while (true) { var mode = userInteractor.AskAction(); switch (mode) { case UserAction.SelectFolder: SelectFolder(); break; case UserAction.BackFolder: BackFolder(); break; case UserAction.Close: return; } } }