private void cadastroUsuarioBtn1_Click(object sender, EventArgs e) { if (telaUsuario == null) { telaUsuario = new TelaUsuario(); telaUsuario.Disposed += new EventHandler(telaUsuario_Disposed); telaUsuario.Show(); } }
void telaUsuario_Disposed(object sender, EventArgs e) { telaUsuario = null; }