コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }