日期:2014-05-17 浏览次数:20793 次
private void CCForm()
{
int n = Application.Current.Windows.Count;
for (int a = 0; a < n; a++)
{
for (int i = 0; i < Application.Current.Windows.Count; i++)
{
string x = Application.Current.Windows[i].Name;
if (x != "主窗体W0") Application.Current.Windows[i].Close();
}
}
}