Example #1
0
        public static void AddNew(string url, Bitmap bmp)
        {
            Uri    uri = new Uri(url);
            string key = uri.Scheme + "://" + uri.Host;
            Dictionary <string, Bitmap> favicons = FileOptions.LoadFavicons();

            if (!favicons.ContainsKey(key))
            {
                favicons.Add(key, bmp);
            }
            FileOptions.SaveFavicons(favicons);
        }