private void orginalToolStripMenuItem_Click(object sender, EventArgs e) { if (p != null) { p.Close(); } if (li.Count != 0) { p = new ShowPallete(ref li); p.Show(this); } else { MessageBox.Show("Please Select an Image"); } }
private void quantizedToolStripMenuItem_Click(object sender, EventArgs e) { if (p != null) { p.Close(); } if (quan != null && quan.Pallete.Count != 0) { p = new ShowPallete(ref quan.Pallete); p.Show(); } else { MessageBox.Show("Please Select an Image ."); } }