Esempio n. 1
0
 private void SwitchToMain()
 {
     Main_From pParent = new Main_From();
     //pParent.RestoreWindow();
     pParent.RestoreWindow();
     this.Hide();
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Main_From pParent = new Main_From();
     //pParent.RestoreWindow();
     pParent.RestoreWindow();
 }
Esempio n. 3
0
        public void Check_FormStatus()
        {

            Form singleForm = null;//初始化为空

            foreach (Form item in Application.OpenForms)
            {

                if (item is Main_From)
                {

                    singleForm = item;
                    //object sender=new object();
                    //System.EventArgs e = System.EventArgs.Empty;
                    //this.Input_Output_Load( sender, e);
                    this.Close();
                    //singleForm.Show();
                    break;

                }

            }

            if (singleForm == null) singleForm = new Main_From();

            singleForm.Show();

        }