/// <summary> /// Import a local image file into the current study and set it as Guide for the /// given KnowledgeMap /// </summary> public ejpExternalImageEntityWrapper ImportKnowledgeMapGuideToStudy(string filePath, ejpKnowledgeMap targetKM) { //DebugManagers.DebugReporter.ReportMethodEnter(); ejpExternalImageEntityWrapper wrapper = EjpLib.AssignmentOperations.LocalAssignmentFileOperations.ImportImageFileToPackage( Enumerations.AssignmentPackagePartRelationship.KnowledgeMapImageObject_v1, filePath, targetKM.PackageRelationshipIDString, this, targetKM.Id, Helpers.IdManipulation.GetNewGuid()); //Let the KM now the source Uri of the image //designated as Guide. Until the map is saved, //the only data saved here is the source Uri and //and empty Id. The rest of the fields get set //when the KM is saved... targetKM.Guide = new ejpKMGuide() { Id = Guid.Empty, SourceUri = wrapper.SourceUri }; //DebugManagers.DebugReporter.ReportMethodLeave(); return(wrapper); }
/// <summary> /// Import a local image file into the current study /// </summary> public ejpExternalImageEntityWrapper ImportImageFileToStudy(string filePath, ejpKnowledgeMap targetKM) { ejpExternalImageEntityWrapper wrapper = EjpLib.AssignmentOperations.LocalAssignmentFileOperations.ImportImageFileToPackage( Enumerations.AssignmentPackagePartRelationship.KnowledgeMapImageObject_v1, filePath, targetKM.PackageRelationshipIDString, this, targetKM.Id, Helpers.IdManipulation.GetNewGuid()); return(wrapper); }