bool bol = false; foreach (Form fm in Application.OpenForms) { if (fm is fmSales) { bol = true;fm.Activate (); break; } } if (!bol) new fmSales().Show();
jcdd-4041 2013-09-17 14:30 原文
bool bol = false; foreach (Form fm in Application.OpenForms) { if (fm is fmSales) { bol = true;fm.Activate (); break; } } if (!bol) new fmSales().Show();