private void SaveMatrix() { foreach (var part in MatrixParts) { var partMapInfo = this.MappingInfo[part.Uri.ToString()]; var matrixDef = this.MatrixDefinitions[partMapInfo.MatrixDefID]; WfMatrix.ImportNewMatrixFromExcel2007(part.GetStream(), null, partMapInfo.ProcessDescriptionID, matrixDef); } }
private static void SaveMatrix(WfProcessImporterContext context) { foreach (var part in context.MatrixParts) { WfPackageRelationMapping partMapInfo = context.MappingInfo[part.Uri.ToString()]; WfMatrixDefinition matrixDef = context.MatrixDefinitions[partMapInfo.MatrixDefID]; WfMatrix.ImportNewMatrixFromExcel2007(part.GetStream(), null, partMapInfo.ProcessDescriptionID, matrixDef); } }