private void RemoveFilename(string filename) { if (IgnoredProjectPaths.Contains(filename)) { IgnoredProjectPaths.Remove(filename); } }
private void ExecuteBrowseForFile(object parameter) { using (var browser = _browserFactory.CreateOpenFileDialog()) { var result = browser.ShowDialog(); var fullFilename = browser.FileName; if (result == DialogResult.OK && !IgnoredProjectPaths.Any(existing => existing.Equals(fullFilename, StringComparison.OrdinalIgnoreCase))) { IgnoredProjectPaths.Add(fullFilename); } } }