Beispiel #1
0
        private void 评估费计算ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form f = Application.OpenForms["Pinggufei"]; //查找是否打开过Form1窗体

            if (f == null)                               //没打开过
            {
                Pinggufei pinggufei = new Pinggufei();
                pinggufei.MdiParent = this;
                pinggufei.Show();
            }
            else
            {
                f.Focus();   //打开过就让其获得焦点
            }  ////////////////////////
        }
Beispiel #2
0
        private void 评估费计算ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form f = Application.OpenForms["Pinggufei"];  //查找是否打开过Form1窗体
            if (f == null) //没打开过
            {
                Pinggufei pinggufei = new Pinggufei();
                pinggufei.MdiParent=this;
                pinggufei.Show();

            }
            else
            {
                f.Focus();   //打开过就让其获得焦点
            }  ////////////////////////
        }