public bool AddNewPath(string path) { if (path == null) { throw new ArgumentNullException("path"); } if (!RobustFile.Exists(path) && ! Directory.Exists(path)) { return false; } _paths.Remove(path); _paths.Insert(0, path); return true; }
public void SelectCollectionAndClose(string path) { SelectedPath = path; if (!string.IsNullOrEmpty(path)) { _mruList.AddNewPath(path); Invoke(DoneChoosingOrCreatingLibrary); } }