using System.Drawing; using JD.Collections; namespace JD.Timeline.Properties { /// /// Caches a static version of the resources so they are not reloaded from stream each time we request them for a painting. /// public class ResourcesCache : Application.Properties.ResourcesCache { private static readonly KeyedCache _cache = new KeyedCache(); public static Bitmap Icon_16x16_Group { get { return _cache["Icon_16x16_Group", () => Resources.Icon_16x16_Group]; } } public static Bitmap Icon_20x20_noactor { get { return _cache["Icon_20x20_noactor", () => Resources.Icon_20x20_noactor]; } } public static Bitmap Icon_20x20_tape { get { return _cache["Icon_20x20_tape", () => Resources.Icon_20x20_tape]; } } public static Bitmap Icon_16x16_warning { get { return _cache["Icon_16x16_warning", () => Resources.Icon_16x16_warning]; } } public static Bitmap Icon_20x20_sound { get { return _cache["Icon_20x20_sound", () => Resources.Icon_20x20_sound]; } } public static Bitmap Icon_20x20_camera { get { return _cache["Icon_20x20_camera", () => Resources.Icon_20x20_camera]; } } public static Bitmap Icon_24x24_Snapshot { get { return _cache["Icon_24x24_Snapshot", () => Resources.Icon_24x24_Snapshot]; } } public static Bitmap Icon_16x16_AddModel { get { return _cache["Icon_16x16_AddModel", () => Resources.Icon_16x16_AddModel]; } } } }