private void clienteBtn1_Click(object sender, EventArgs e) { if (telaCliente == null) { telaCliente = new TelaCliente(); telaCliente.Disposed += new EventHandler(telaCliente_Disposed); telaCliente.Show(); } }
void telaCliente_Disposed(object sender, EventArgs e) { telaCliente = null; }