Пример #1
0
        private void cmdNewDocument_Click(object sender, EventArgs e)
        {
            foreach (Form frm in this.MdiChildren)
            {
                if (frm is SkillForm)
                {
                    frm.Activate();
                    return;
                }
            }
            SkillForm doc = new SkillForm();

            doc.MdiParent   = this;
            doc.WindowState = FormWindowState.Maximized;
            doc.Show();
            doc.Update();
            //doc.Text = "New Document " + this.MdiChildren.Length.ToString();
        }
Пример #2
0
 private void cmdNewDocument_Click(object sender, EventArgs e)
 {
     foreach(Form frm in this.MdiChildren)
     {
         if (frm is SkillForm)
         {
             frm.Activate();
             return;
         }
     }
     SkillForm doc = new SkillForm();
     doc.MdiParent = this;
     doc.WindowState = FormWindowState.Maximized;
     doc.Show();
     doc.Update();
     //doc.Text = "New Document " + this.MdiChildren.Length.ToString();
 }