private void OpenChildForm(Form childForm)
{
foreach (Form form in MdiChildren)
{
if (form.GetType() == childForm.GetType())
{
form.BringToFront();
if (form.WindowState == FormWindowState.Minimized)
{
form.WindowState = FormWindowState.Normal;
}
return;
}
}
}
childForm.MdiParent = this;
childForm.Show();
}
childForm.Show();
}
No hay comentarios:
Publicar un comentario