53 lines
No EOL
1.7 KiB
C#
53 lines
No EOL
1.7 KiB
C#
using System.Drawing;
|
|
using JD.Collections;
|
|
|
|
namespace JD.Timeline.Properties
|
|
{
|
|
/// <summary>
|
|
/// Caches a static version of the resources so they are not reloaded from stream each time we request them for a painting.
|
|
/// </summary>
|
|
public class ResourcesCache : Application.Properties.ResourcesCache
|
|
{
|
|
private static readonly KeyedCache<string, Bitmap> _cache = new KeyedCache<string, Bitmap>();
|
|
|
|
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]; }
|
|
}
|
|
}
|
|
} |