private void button1_Click(object sender, EventArgs e) { if (radioButton1.Checked == true) { bool isOpen = false; Form14 form14 = new Form14(); if (Application.OpenForms["Form14"] != null) { if ((Application.OpenForms["Form14"].Text).Equals("MSS Information Centre")) { isOpen = true; } if (isOpen == true) { form14.Focus(); this.Close(); } else { isOpen = true; form14.ShowDialog(); form14.Focus(); //this.Close(); } }//this.Close(); else { form14.ShowDialog(); } } else if (radioButton4.Checked == true) { bool isOpen = false; Form15 form15 = new Form15(); if (Application.OpenForms["Form15"] != null) { if ((Application.OpenForms["Form15"].Text).Equals("MSS Information Centre")) { isOpen = true; } if (isOpen == true) { form15.Focus(); this.Close(); } else { isOpen = true; form15.ShowDialog(); form15.Focus(); //this.Close(); } }//this.Close(); else { form15.ShowDialog(); } } }
private void button7_Click(object sender, EventArgs e) { this.Visible = false; Form14 f = new Form14(); f.ShowDialog(); }