public void UpdateDirectory() { if (_systemUtility.IsValidDirectory(RequestedDirectory)) { CurrentDirectory = RequestedDirectory; } else if (string.IsNullOrEmpty(CurrentDirectory)) { CurrentDirectory = "Please enter a directory"; } else { RequestedDirectory = CurrentDirectory; } }