/// <summary> /// 删除一个项目 /// </summary> /// <param name="pro">要删除的项目</param> public void DelProjectClass(ProjectClass pro) { if (MySolution.Contains(pro)) { MySolution.Remove(pro); foreach (MyProjectFiles file in MyProjectClassFile) { if (file.Name == pro.ProjectName) { MyProjectClassFile.Remove(file); } } } }