/// <summary> /// Adds a project to the solution. /// Sets its solution property to 'this' solution. /// Adds it to the project cache. /// </summary> /// <param name="Project"></param> public bool AddProject(Project Project) { if (Project == null) { return(false); } if (!ProjectCache.Contains(Project)) { AddProject(Project.FileName); ProjectCache.Add(Project); } else { return(false); } Project.Solution = this; return(true); }