/// <summary> /// This is used to prompt the user whether to add the solution or just selected projects from it as /// documentation sources. /// </summary> /// <param name="solutionName">The solution filename to use</param> /// <returns>An enumerable list containing either the solution name or the selected projects</returns> public static IEnumerable <string> SelectSolutionOrProjects(string solutionName) { using (SelectProjectsDlg dlg = new SelectProjectsDlg()) { dlg.LoadSolutionProjectNames(solutionName); if (dlg.ShowDialog() == DialogResult.OK) { foreach (string filename in dlg.SolutionOrProjectNames) { yield return(filename); } } } }
/// <summary> /// This is used to prompt the user whether to add the solution or just selected projects from it as /// documentation sources. /// </summary> /// <param name="solutionName">The solution filename to use</param> /// <returns>An enumerable list containing either the solution name or the selected projects</returns> public static IEnumerable<string> SelectSolutionOrProjects(string solutionName) { using(SelectProjectsDlg dlg = new SelectProjectsDlg()) { dlg.LoadSolutionProjectNames(solutionName); if(dlg.ShowDialog() == DialogResult.OK) { foreach(string filename in dlg.SolutionOrProjectNames) yield return filename; } } }