private void listarProdutosToolStripMenuItem_Click(object sender, EventArgs e) { if (telaListarProdutos == null) { telaListarProdutos = new Listar_Produtos(); telaListarProdutos.Show(); telaListarProdutos.MdiParent = this; telaListarProdutos.Disposed += new EventHandler(telaListarProdutos_Disposed); } }
void telaListarProdutos_Disposed(object sender, EventArgs e) { telaListarProdutos = null; }