protected internal void GetAllVersions() { var xDoc = MyFileWorker.LoadXDocument(Properties.Settings.Default.FileWithVersionsPath); var allVersionElement = xDoc.Element("Versions").Element("AllVersions"); AllVersionsList = allVersionElement.Elements().ToList(); }
public CSProjProcessor(List <string> _csProjFileNames, IFileWorker _workWithFile) //tested { csProjFileNames = _csProjFileNames; MyWorkWithFile = _workWithFile; RootDocuments = new List <DXProjDocument>(); foreach (var fl in csProjFileNames) { var doc = MyWorkWithFile.LoadXDocument(fl); var dxDoc = new DXProjDocument(doc, fl); RootDocuments.Add(dxDoc); } }