foreach (Form frm in Application.OpenForms)
{
if (frm is MainPlanForm)
{
frm.Focus();
return;
}
}
MainPlanForm f2 = new MainPlanForm();
f2.Show();