Exemple #1
0
        public void OpenForm(string sFormName, object _Owner, int iTop)//打开子窗口
        {
            foreach (frmChild item in AOpenForm)
            {
                item.Close();
            }

            frmChild NewForm = new frmChild(sFormName, (Form)_Owner, iTop);

            NewForm.Show();
            AOpenForm.Add(NewForm);
        }
Exemple #2
0
        public void OpenForm(string sFormName, object _Owner, PointF LocationPF)//打开子窗口
        {
            foreach (frmChild item in AOpenForm)
            {
                item.Close();
            }

            frmChild NewForm = new frmChild(sFormName, (Form)_Owner, 0);

            NewForm.cForm.m_Location = LocationPF;
            NewForm.Show();
            AOpenForm.Add(NewForm);
        }