public bool CheckRecalculatePeaks(PeptideAnalysisData savedData) { if (Equals(this, savedData)) { return(false); } if (!Equals(MinCharge, savedData.MinCharge) || !Equals(MaxCharge, savedData.MaxCharge) || !Equals(ExcludedMasses, savedData.ExcludedMasses) || !Equals(MassAccuracy, savedData.MassAccuracy)) { return(true); } if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys)) { return(true); } for (int i = 0; i < FileAnalyses.Count; i++) { if (FileAnalyses.Values[i].CheckRecalculatePeaks(savedData.FileAnalyses.Values[i])) { return(true); } } return(false); }
public PeptideAnalysisData(PeptideAnalysisData peptideAnalysisData) { Name = peptideAnalysisData.Name; PeptideId = peptideAnalysisData.PeptideId; MinCharge = peptideAnalysisData.MinCharge; MaxCharge = peptideAnalysisData.MaxCharge; ExcludedMasses = peptideAnalysisData.ExcludedMasses; MassAccuracy = peptideAnalysisData.MassAccuracy; FileAnalyses = peptideAnalysisData.FileAnalyses; ChromatogramsWereLoaded = peptideAnalysisData.ChromatogramsWereLoaded; }
protected bool Equals(PeptideAnalysisData other) { return(string.Equals(Name, other.Name) && PeptideId == other.PeptideId && MinCharge == other.MinCharge && Equals(ExcludedMasses, other.ExcludedMasses) && MaxCharge == other.MaxCharge && MassAccuracy.Equals(other.MassAccuracy) && Equals(FileAnalyses, other.FileAnalyses) && Equals(ChromatogramsWereLoaded, other.ChromatogramsWereLoaded)); }
public bool CheckDirty(PeptideAnalysisData savedData) { if (!string.Equals(Name, savedData.Name) || PeptideId != savedData.PeptideId || MinCharge != savedData.MinCharge || MaxCharge != savedData.MaxCharge || !Equals(ExcludedMasses, savedData.ExcludedMasses) || !MassAccuracy.Equals(savedData.MassAccuracy)) { return(true); } if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys)) { return(true); } for (int i = 0; i < FileAnalyses.Count; i++) { if (FileAnalyses.Values[i].CheckDirty(savedData.FileAnalyses.Values[i])) { return(true); } } return(false); }
protected bool Equals(PeptideAnalysisData other) { return string.Equals(Name, other.Name) && PeptideId == other.PeptideId && MinCharge == other.MinCharge && Equals(ExcludedMasses, other.ExcludedMasses) && MaxCharge == other.MaxCharge && MassAccuracy.Equals(other.MassAccuracy) && Equals(FileAnalyses, other.FileAnalyses) && Equals(ChromatogramsWereLoaded, other.ChromatogramsWereLoaded); }
public bool CheckRecalculatePeaks(PeptideAnalysisData savedData) { if (Equals(this, savedData)) { return false; } if (!Equals(MinCharge, savedData.MinCharge) || !Equals(MaxCharge, savedData.MaxCharge) || !Equals(ExcludedMasses, savedData.ExcludedMasses) || !Equals(MassAccuracy, savedData.MassAccuracy)) { return true; } if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys)) { return true; } for (int i = 0; i < FileAnalyses.Count; i++) { if (FileAnalyses.Values[i].CheckRecalculatePeaks(savedData.FileAnalyses.Values[i])) { return true; } } return false; }
public bool CheckDirty(PeptideAnalysisData savedData) { if (!string.Equals(Name, savedData.Name) || PeptideId != savedData.PeptideId || MinCharge != savedData.MinCharge || MaxCharge != savedData.MaxCharge || !Equals(ExcludedMasses, savedData.ExcludedMasses) || !MassAccuracy.Equals(savedData.MassAccuracy)) { return true; } if (!Equals(FileAnalyses.Keys, savedData.FileAnalyses.Keys)) { return true; } for (int i = 0; i < FileAnalyses.Count; i++) { if (FileAnalyses.Values[i].CheckDirty(savedData.FileAnalyses.Values[i])) { return true; } } return false; }