Exemplo n.º 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     Input_Output pParent = new Input_Output();
     //pParent.RestoreWindow();
     pParent.RestoreWindow();
 }
Exemplo n.º 2
0
        public void Check_FormStatus()
        {
            
            Form singleForm = null;//初始化为空

                foreach (Form item in Application.OpenForms)
                {

                    if (item is Input_Output)
                    {

                        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 Input_Output();
           
            singleForm.Show();
           
        }