/// <summary> /// No checking so make sure parameters are correct /// </summary> /// <param name="cp">Used to create the middle part of the export path</param> /// <param name="basePath">First part of the export path</param> /// <param name="path1">Used to create the middle part of the export path</param> /// <param name="path2">Used to create the middle part of the export path</param> /// <returns></returns> public static string GetExportPath(CommonParams cp, string basePath, string path1, string path2) { string pathToCombine = Path.Combine(cp.BuildingID.ToString(), Path.Combine(cp.Grade.ToString(), Path.Combine(path1.Replace(@"\\", @"\"), path2.Replace(@"\\", @"\")))); string path = Path.Combine(basePath, pathToCombine); return(path); }
/// <summary> /// No checking so make sure parameters are correct /// </summary> /// <param name="cp">Used to create the middle part of the export path</param> /// <param name="basePath">First part of the export path</param> /// <param name="path1">Used to create the middle part of the export path</param> /// <returns></returns> public static string GetExportPath(CommonParams cp, string basePath, string path1) { return(GetExportPath(cp, basePath, path1, "")); }