Example #1
0
        public void SetImage(Object item, Image image)
        {
            String hash = image.GetHash(HashType.MD5).Text();

            if (!Images.Images.ContainsKey(hash))
            {
                Images.Images.Add(hash, image);
            }

            ImageDictionary.Set(item, hash);
        }
Example #2
0
 public void SetColor(Object item, Color background, Color foreground, Font font = null)
 {
     ColorDictionary.Set(item, new DrawingData(background, foreground, font));
 }