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

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

            return(instancia);
        }
Example #3
0
 private void FormSingleton_FormClosed(object sender, FormClosedEventArgs e)
 {
     instancia = null;
 }