예제 #1
0
 public void Add(IGridFileProvider provider)
 {
     if (!list.Contains(provider))
     {
         list.Add(provider);
     }
 }
예제 #2
0
        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);
        }