private static Uri CreatePartUri(string fileName, WfProcessDescriptorPackagePartType partType) { Uri result = null; switch (partType) { case WfProcessDescriptorPackagePartType.ProcessPart: result = new Uri("/" + fileName + WfProcessExporter.WF_PROCESS_SUFFIX, UriKind.Relative); break; case WfProcessDescriptorPackagePartType.MatrixPart: result = new Uri("/" + fileName + WfProcessExporter.WF_MATRIX_SUFFIX, UriKind.Relative); break; case WfProcessDescriptorPackagePartType.MatrixDefPart: result = new Uri("/" + fileName + WfProcessExporter.WF_MATRIXDEF_SUFFIX, UriKind.Relative); break; case WfProcessDescriptorPackagePartType.MappingPart: result = new Uri("/" + WfProcessExporter.WF_MAPPING, UriKind.Relative); break; } return(result); }
private static Uri CreatePartUri(string fileName, WfProcessDescriptorPackagePartType partType) { Uri result = null; switch (partType) { case WfProcessDescriptorPackagePartType.ProcessPart: result = new Uri("/" + fileName + WfProcessExporter.WF_PROCESS_SUFFIX, UriKind.Relative); break; case WfProcessDescriptorPackagePartType.MatrixPart: result = new Uri("/" + fileName + WfProcessExporter.WF_MATRIX_SUFFIX, UriKind.Relative); break; case WfProcessDescriptorPackagePartType.MatrixDefPart: result = new Uri("/" + fileName + WfProcessExporter.WF_MATRIXDEF_SUFFIX, UriKind.Relative); break; case WfProcessDescriptorPackagePartType.MappingPart: result = new Uri("/" + WfProcessExporter.WF_MAPPING, UriKind.Relative); break; } return result; }