public static ColourScheme GetInstance() { if (theColourScheme == null) { try { theColourScheme = new ColourScheme(); } catch { theColourScheme = null; } } return(theColourScheme); }
/// <summary> /// /// </summary> /// <param name="lookupItem"></param> /// <returns></returns> /// <remarks> /// Helper method -- simplifies call syntax for callers. /// </remarks> public static Color GetColour(ColourSchemeItem lookupItem) { return(ColourScheme.GetInstance().LookupColour(lookupItem)); }