public IFileChartPoints AddFileChartPoints(string fileName) { IFileChartPoints fPnts = GetFileChartPoints(fileName); if (fPnts == null) { IFileElem fileElem = cpCodeModel.GetFile(fileName); if (fileElem != null) { fPnts = CP.Utils.IClassFactory.GetInstance().CreateFileCPs(fileElem, data); AddFileChartPoints(fPnts, false); } } return(fPnts); }
public IFileElem GetFile(string fileName) { string fUniqueName = System.IO.Path.GetFullPath(fileName).ToLower(); IFileElem fElem = fileElems.FirstOrDefault((v) => (v.uniqueName == fUniqueName)); if (fElem != null) { return(fElem); } EnvDTE.ProjectItem theProjItem = GetProjItem(proj.ProjectItems, fileName); if (theProjItem != null) { fElem = new FileElem(theProjItem, this); fileElems.Add(fElem); return(fElem); } return(null); }