public override WorkspaceData SetData(WorkspaceData workspaceData, PeptideFileAnalysisData value) { var peptideAnalysisData = PeptideAnalysis.GetData(workspaceData); peptideAnalysisData = peptideAnalysisData.SetFileAnalyses(peptideAnalysisData.FileAnalyses.Replace(Id, value)); return(PeptideAnalysis.SetData(workspaceData, peptideAnalysisData)); }
public override PeptideFileAnalysisData GetData(WorkspaceData workspaceData) { var peptideAnalysisData = PeptideAnalysis.GetData(workspaceData); PeptideFileAnalysisData peptideFileAnalysisData = null; if (null != peptideAnalysisData) { peptideAnalysisData.FileAnalyses.TryGetValue(Id, out peptideFileAnalysisData); } return(peptideFileAnalysisData); }