private void pesquisarClienteToolStripMenuItem_Click(object sender, EventArgs e) { if (telaPesquisarCliente == null) { telaPesquisarCliente = new Pesquisar_Cliente(); telaPesquisarCliente.Show(); telaPesquisarCliente.MdiParent = this; telaPesquisarCliente.Disposed += new EventHandler(telaPesquisarCliente_Disposed); } }
void telaPesquisarCliente_Disposed(object sender, EventArgs e) { telaPesquisarCliente = null; }