public static CuartosForm Instance() { if (form == null) { form = new CuartosForm(); } return(form); }
private void toolStripButton3_Click(object sender, EventArgs e) { if (ActiveMdiChild != null) { ActiveMdiChild.Close(); } var cuartosForm = CuartosForm.Instance(); cuartosForm.MdiParent = this; cuartosForm.WindowState = FormWindowState.Maximized; cuartosForm.Show(); }