private void itemClientes_Click(object sender, EventArgs e) { GestionClientes fgc = new GestionClientes(); fgc.ShowDialog(); //if(fgc!=null) //{ // fgc.Close(); // fgc = null; //} //else //{ // fgc = new GestionClientes(); // fgc.MdiParent = this; // fgc.WindowState = FormWindowState.Maximized; // fgc.Visible = true; // fgc.FormClosing += volverNulo; //} }
public void volverNulo(object sender, FormClosingEventArgs e) { fgc = null; }