Exemplo n.º 1
0
 public ColorPalette(ColorEditor.ColorUI colorUI, Color[] customColors)
 {
     this.colorUI = colorUI;
     base.SetStyle(ControlStyles.Opaque, true);
     this.BackColor    = SystemColors.Control;
     base.Size         = new Size(0xca, 0xca);
     this.staticColors = new Color[0x30];
     for (int i = 0; i < staticCells.Length; i++)
     {
         this.staticColors[i] = ColorTranslator.FromOle(staticCells[i]);
     }
     this.customColors = customColors;
 }
 public ColorPalette(ColorEditor.ColorUI colorUI, Color[] customColors)
 {
     this.colorUI = colorUI;
     base.SetStyle(ControlStyles.Opaque, true);
     this.BackColor = SystemColors.Control;
     base.Size = new Size(0xca, 0xca);
     this.staticColors = new Color[0x30];
     for (int i = 0; i < staticCells.Length; i++)
     {
         this.staticColors[i] = ColorTranslator.FromOle(staticCells[i]);
     }
     this.customColors = customColors;
 }