public static ColorCollection GetPalette(ColorPalette palette)
        {
            ColorCollection result;

              switch (palette)
              {
            case ColorPalette.Recent:
              string sRecentFile = Assembly.GetExecutingAssembly().Location + ".recent";
              if (File.Exists(sRecentFile))
              {
            result = new ColorCollection();
            result.Load(sRecentFile);
            break;
              }else
              {
            result = NamedColors;
            break;
              }
            case ColorPalette.Named:
              result = NamedColors;
              break;
            case ColorPalette.Office2010:
              result = Office2010Standard;
              break;
            case ColorPalette.Paint:
              result = PaintPalette;
              break;
            case ColorPalette.Standard:
              result = QbColors;
              break;
            case ColorPalette.None:
              result = new ColorCollection();
              break;
            case ColorPalette.WebSafe:
              result = WebSafe;
              break;
            case ColorPalette.Standard256:
              result = StandardPalette;
              break;
            default:
              throw new ArgumentException("Invalid palette", "palette");
              }

              return result;
        }