Пример #1
0
 private void ribbonButton2_Click(object sender, EventArgs e)
 {
     foreach (Form f in this.MdiChildren)
     {
         if (f.GetType() == typeof(MDIChild1))
         {
             f.Activate();
             return;
         }
     }
     Form form = new MDIChild1();
     form.MdiParent = this;
     form.Show();
 }
Пример #2
0
        private void ribbonButton2_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f.GetType() == typeof(MDIChild1))
                {
                    f.Activate();
                    return;
                }
            }
            Form form = new MDIChild1();

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