/// <summary> /// Dodaje novi fajl /// </summary> /// <param name="__path"></param> /// <param name="__type"></param> public void AddFile(string __path, reportIncludeFileType __type = reportIncludeFileType.unknown) { if (__type == reportIncludeFileType.unknown) { __type = __path.getIncludeFileTypeByExtension(); } /// Directory.GetCurrentDirectory() string dirName = Path.GetDirectoryName(__path); //if (imbSciStringExtensions.isNullOrEmpty(dirName)) //{ // __path = outputFolder.resources.ToString(); // DirectoryInfo di = new DirectoryInfo(__path); // __path = di.FullName; //} //if (!Path.IsPathRooted(__path)) //{ // // __path = Path.Combine(imbCoreManager.runtimePath, __path); //} bool __lc = false; switch (__type) { case reportIncludeFileType.cssStyle: __lc = true; break; } reportIncludeFile rf = new reportIncludeFile(__path, __type, __lc); Add(rf); }
public reportIncludeFile(string _sourcePath, reportIncludeFileType __fileType = reportIncludeFileType.cssStyle, bool __doLocalCopy = true) { sourceFilePath = _sourcePath; name = Path.GetFileNameWithoutExtension(_sourcePath); extension = Path.GetExtension(_sourcePath); filetype = __fileType; doLocalCopy = __doLocalCopy; filename = name + extension; localOutputPath = filename; }