private void formularioToolStripMenuItem_Click(object sender, EventArgs e) { FormSingleton formSingleton = FormSingleton.Mostrar(); formSingleton.MdiParent = this; formSingleton.Show(); }
public static FormSingleton Mostrar() { if (instancia == null) { instancia = new FormSingleton(); } return(instancia); }
private void FormSingleton_FormClosed(object sender, FormClosedEventArgs e) { instancia = null; }