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

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

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