/// <summary> /// Create palette form from ColorPalette. /// </summary> /// <param name="colPal">Color palette.</param> public PaletteForm(bool isTransparent, string name, ColorPalette colPal, UpdatePaletteDelegate palDelegate) { InitializeComponent(); this.isTransparentTexture = isTransparent; this.Text += name; //Backup actual color palette originalColorsPalette = new Color[colPal.Entries.Length]; colPal.Entries.CopyTo(originalColorsPalette, 0); //Set color palette palette = colPal; updatePalette = palDelegate; }