Example #1
0
 public static void AddPalette(PaletteItem palette)
 {
     if (!pDict.ContainsKey(palette.Name))
     {
         pDict.Add(palette.Name, palette);
     }
 }
Example #2
0
        public static void RemovePalette(int idx)
        {
            if (idx < pDict.Count)
            {
                PaletteItem p = pDict[NameFromIndex(idx)];

                p.Destroy();

                pDict.Remove(p.Name);
            }
        }