110,536
社区成员
发帖
与我相关
我的任务
分享
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();
}
}
}
private void CCForm()
{
int n = Application.Current.Windows.Count;
ArrayList FormNameList = new ArrayList();
for (int a = 0; a < n; a++)
{
FormNameList.Add(Application.Current.Windows[a].Name);
}
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();
}
}
}