private void buttonPalette_Click(object sender, EventArgs e) { try { if (imagemLoad != null) { FormReducaoCores formPalette = new FormReducaoCores(imagemLoad); formPalette.Show(); } else { throw new FileLoadException(); } } catch (Exception exception) { Console.WriteLine(exception.Message); } }