private void purplePaletteToolStripMenuItem_Click(object sender, EventArgs e) { if (myImage != null) { myImage.purplePalette(); panel.Refresh(); } }