Beispiel #1
0
        private void formulario2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form2 objfrm2 =
                SingletonFormProvider.GetInstance <Form2>(this);

            objfrm2.MdiParent = this;
            objfrm2.Show();
        }
Beispiel #2
0
        private void formulario1ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Form1 frm = new Form1();
            //frm.MdiParent = this;
            //frm.Show();
            //Form1 frm = this.FormInstance;
            //frm.Show();

            // Form1 objfrm1 = GenericSingleton<Form1>.GetInstance();
            Form1 objfrm1 =
                SingletonFormProvider.GetInstance <Form1>(this);

            objfrm1.MdiParent = this;
            objfrm1.Show();
        }