private void btCategoria_Click(object sender, EventArgs e) { if (categoria == null) { categoria = new formCategoria(); categoria.MdiParent = this; categoria.Show(); categoria.FormClosed += new FormClosedEventHandler(fecharCategoria); } }
private void fecharCategoria(object sender, EventArgs e) { categoria = null; }