Exemple #1
0
 public IDictionary <String, Bitmap> GetProtocolIcons()
 {
     if (null == _protocolIcons)
     {
         _protocolIcons = new Dictionary <string, Bitmap>();
         foreach (Protocol p in ProtocolFactory.getEnabledProtocols().toArray(new Protocol[] {}))
         {
             _protocolIcons[p.getProvider()] = IconForName(p.icon(), 16);
         }
     }
     return(_protocolIcons);
 }
Exemple #2
0
        public IDictionary <String, Bitmap> GetProtocolImages(int size)
        {
            IDictionary <String, Bitmap> dict;

            if (!_protocolImages.TryGetValue(size, out dict))
            {
                dict = new Dictionary <string, Bitmap>();
                foreach (Protocol p in ProtocolFactory.getEnabledProtocols().toArray(new Protocol[] {}))
                {
                    dict[p.disk()] = IconForName(p.disk(), size);
                }
                _protocolImages.Add(size, dict);
            }
            return(dict);
        }