Exemplo n.º 1
0
        private void closeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ChildForm Child = (ChildForm)this.ActiveMdiChild;

            if (Child == null)
            {
                return;
            }
            Child.Close();
        }
Exemplo n.º 2
0
        private void OpenChildForm(string strOpenFileName)
        {
            bool IsOpen = false;

            for (int i = 0; i < MdiChildren.Length; i++)
            {
                if (MdiChildren[i].Name == strOpenFileName)
                {
                    MdiChildren[i].BringToFront();
                    IsOpen = true;
                    break;
                }
            }

            if (!IsOpen)
            {
                ChildForm Child = new ChildForm(this);
                Child.Name = strOpenFileName;
                Child.OpenFile(strOpenFileName);
                Child.Show();
            }
        }
Exemplo n.º 3
0
        private void OpenChildForm(string strOpenFileName)
        {
            bool IsOpen = false;

            for (int i = 0; i < MdiChildren.Length; i++)
            {
                if (MdiChildren[i].Name == strOpenFileName)
                {
                    MdiChildren[i].BringToFront();
                    IsOpen = true;
                    break;
                }
            }

            if (!IsOpen)
            {
                ChildForm Child = new ChildForm(this);
                Child.Name = strOpenFileName;
                Child.OpenFile(strOpenFileName);
                Child.Show();
            }
        }
Exemplo n.º 4
0
 public void SetChildForm(ChildForm Child)
 {
     m_ChildForm = Child;
 }
Exemplo n.º 5
0
 public void SetChildForm(ChildForm Child)
 {
     m_ChildForm = Child;
 }