private void SwitchToMain() { Main_From pParent = new Main_From(); //pParent.RestoreWindow(); pParent.RestoreWindow(); this.Hide(); }
private void button1_Click(object sender, EventArgs e) { Main_From pParent = new Main_From(); //pParent.RestoreWindow(); pParent.RestoreWindow(); }
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(); }