private void ChangeColor(int index) { Split curXSplit = curLigneSplit.GetSplit(index); EditColor ed = new EditColor(curXSplit.couleur, BitmapCpc.RgbCPC[curXSplit.couleur].GetColorArgb, false); ed.ShowDialog(this); if (ed.isValide) { curXSplit.couleur = ed.ValColor; DisplayLigne(false); } }
// Changement de la palette private void ClickColor(object sender, System.EventArgs e) { Label colorClick = sender as Label; numCol = colorClick.Tag != null ? (int)colorClick.Tag : 0; EditColor ed = new EditColor(numCol, bitmapCpc.GetPaletteColor(0, 0, numCol).GetColorArgb, false); ed.ShowDialog(this); if (ed.isValide) { bitmapCpc.Palette[0, 0, numCol] = ed.ValColor; colors[numCol].BackColor = Color.FromArgb(bitmapCpc.GetPaletteColor(0, 0, numCol).GetColorArgb); colors[numCol].Refresh(); Render(); } }