private void telaCategoriaBtn_Click(object sender, EventArgs e) { if (telaCategoria == null) { telaCategoria = new TelaCategoria(); telaCategoria.Disposed += new EventHandler(telaCategoria_Disposed); telaCategoria.Show(); } }
void telaCategoria_Disposed(object sender, EventArgs e) { telaCategoria = null; }