示例#1
0
 public void OpenForm2()
 {
     if (_form02 == null)
     {
         _form02             = new Form02();
         _form02.MdiParent   = this;
         _form02.FormClosed += new FormClosedEventHandler(form02_FormClosed);
         _form02.Show();
     }
     else
     {
         _form02.Activate();
     }
 }
示例#2
0
文件: Main.cs 项目: ragnakuei/MdiForm
 private void form02ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_form02 == null)
     {
         _form02             = new Form02();
         _form02.MdiParent   = this;
         _form02.FormClosed += new FormClosedEventHandler(form02_FormClosed);
         _form02.Show();
     }
     else
     {
         _form02.Activate();
     }
 }
示例#3
0
 private void btnOpenForm2_Click(object sender, EventArgs e)
 {
     if (_form02 == null)
     {
         _form02             = new Form02();
         _form02.MdiParent   = _mdiParentForm;
         _form02.FormClosed += new FormClosedEventHandler(form02_FormClosed);
         _form02.Show();
     }
     else
     {
         _form02.Activate();
     }
 }
示例#4
0
文件: Main.cs 项目: ragnakuei/MdiForm
 void form02_FormClosed(object sender, FormClosedEventArgs e)
 {
     _form02 = null;
 }