Пример #1
0
        public void SetData(WorkspaceData data, WorkspaceData savedData)
        {
            if (Equals(Data, data) && Equals(SavedData, savedData))
            {
                return;
            }
            var workspaceChange = new WorkspaceChangeArgs(Data, SavedData);

            _data = data;
            _savedWorkspaceData = savedData;
            _tracerDefList      = null;
            RetentionTimeAlignments.SetData(Data);
            Settings.Update(workspaceChange);
            Modifications.Update(workspaceChange);
            TracerDefs.Update(workspaceChange);
            Peptides.Update(workspaceChange);
            MsDataFiles.Update(workspaceChange);
            PeptideAnalyses.Update(workspaceChange);
            var changeHandlers = Change;

            if (null != changeHandlers)
            {
                changeHandlers(this, workspaceChange);
            }
        }
Пример #2
0
 private Workspace()
 {
     _data                   = _savedWorkspaceData = new WorkspaceData();
     Modifications           = new Modifications(this);
     Settings                = new WorkspaceSettings(this);
     TracerDefs              = new TracerDefs(this);
     PeptideAnalyses         = new PeptideAnalyses(this);
     Peptides                = new Peptides(this);
     MsDataFiles             = new MsDataFiles(this);
     RetentionTimeAlignments = new RetentionTimeAlignments(Data);
 }
Пример #3
0
        public void Merge(WorkspaceData newData)
        {
            var newSavedData = newData;

            newData = Settings.Merge(newData);
            newData = Modifications.Merge(newData);
            newData = TracerDefs.Merge(newData);
            newData = Peptides.Merge(newData);
            newData = MsDataFiles.Merge(newData);
            newData = PeptideAnalyses.Merge(newData);
            SetData(newData, newSavedData);
        }
Пример #4
0
 public void DiffSettings(WorkspaceChangeArgs workspaceChange)
 {
     Settings.Diff(workspaceChange);
     Modifications.Diff(workspaceChange);
     TracerDefs.Diff(workspaceChange);
 }