Esempio n. 1
0
        private void formularioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormSingleton formSingleton = FormSingleton.Mostrar();

            formSingleton.MdiParent = this;
            formSingleton.Show();
        }
Esempio n. 2
0
        public static FormSingleton Mostrar()
        {
            if (instancia == null)
            {
                instancia = new FormSingleton();
            }

            return(instancia);
        }
Esempio n. 3
0
 private void FormSingleton_FormClosed(object sender, FormClosedEventArgs e)
 {
     instancia = null;
 }