コード例 #1
0
 public static ColourScheme GetInstance()
 {
     if (theColourScheme == null)
     {
         try
         {
             theColourScheme = new ColourScheme();
         }
         catch
         {
             theColourScheme = null;
         }
     }
     return(theColourScheme);
 }
コード例 #2
0
 /// <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));
 }