public override void Compute() { Logger.Trace("Start component UserFeedbackGUI"); TLArtifactsCollection originalSrcList = (TLArtifactsCollection)Workspace.Load("originalSourceArtifacts"); TLArtifactsCollection originalTrgList = (TLArtifactsCollection)Workspace.Load("originalTargetArtifacts"); var matrix = (TLSimilarityMatrix)Workspace.Load("similarityMatrix"); if (matrix == null) throw new ComponentException("Received matrix is null."); if (originalSrcList == null) throw new ComponentException("Received source artifacts list is null."); if (originalTrgList == null) throw new ComponentException("Received target artifacts list is null."); extendedSimMatrix = matrix as SimilarityMatrixUserFeedback; if (extendedSimMatrix == null) { extendedSimMatrix = new SimilarityMatrixUserFeedback(matrix); } GUIForm theForm = new GUIForm(originalSrcList, originalTrgList, extendedSimMatrix, config); theForm.ShowDialog(); Workspace.Store("OutpuySimilarityMatrixUserFeedback", theForm.ExtendedSimilarityMatrix); if (config.OutSavePath != null) { saveToFile(); } }