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); }
public void SetColor(Object item, Color background, Color foreground, Font font = null) { ColorDictionary.Set(item, new DrawingData(background, foreground, font)); }