Ejemplo n.º 1
0
 private void form03ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_form03 == null)
     {
         _form03             = new Form03();
         _form03.MdiParent   = this;
         _form03.FormClosed += new FormClosedEventHandler(form03_FormClosed);
         _form03.Show();
     }
     else
     {
         _form03.Activate();
     }
 }
Ejemplo n.º 2
0
 private void btnOpenForm3_Click(object sender, EventArgs e)
 {
     if (_form03 == null)
     {
         _form03             = new Form03();
         _form03.MdiParent   = _mdiParentForm;
         _form03.FormClosed += new FormClosedEventHandler(form03_FormClosed);
         _form03.Show();
     }
     else
     {
         _form02.Activate();
     }
 }
Ejemplo n.º 3
0
        public void OpenForm3(bool isFromForm1 = false)
        {
            if (_form03 == null)
            {
                _form03             = new Form03();
                _form03.MdiParent   = this;
                _form03.FormClosed += new FormClosedEventHandler(form03_FormClosed);
                _form03.Show();

                if (isFromForm1)
                {
                    _form02.Form03 = _form03;
                }
            }
            else
            {
                _form03.Activate();
            }
        }