public void Add(IGridFileProvider provider) { if (!list.Contains(provider)) { list.Add(provider); } }
public IGridFileProvider Select(string filename) { IGridFileProvider result = null; var extension = Path.GetExtension(filename); foreach (var provider in Providers) { if (provider.Extension == extension) { result = provider; break; } } return(result); }