public bool EqualMasses(TracerDefData other) { return(TracerSymbol.Equals(other.TracerSymbol) && DeltaMass.Equals(other.DeltaMass) && AtomCount.Equals(other.AtomCount) && AtomPercentEnrichment.Equals(other.AtomPercentEnrichment)); }
public DefineLabelDialog(Workspace workspace, TracerDefData tracerDefData) : base(workspace) { InitializeComponent(); _originalTracerDef = tracerDefData; if (_originalTracerDef != null) { SetTracerDef(_originalTracerDef); } }
protected bool Equals(TracerDefData other) { return(string.Equals(TracerSymbol, other.TracerSymbol) && string.Equals(Name, other.Name) && DeltaMass.Equals(other.DeltaMass) && AtomCount == other.AtomCount && AtomPercentEnrichment.Equals(other.AtomPercentEnrichment) && InitialEnrichment.Equals(other.InitialEnrichment) && FinalEnrichment.Equals(other.FinalEnrichment) && IsotopesEluteEarlier.Equals(other.IsotopesEluteEarlier) && IsotopesEluteLater.Equals(other.IsotopesEluteLater)); }
public TracerDefData(TracerDefData tracerDefData) { Name = tracerDefData.Name; TracerSymbol = tracerDefData.TracerSymbol; DeltaMass = tracerDefData.DeltaMass; AtomCount = tracerDefData.AtomCount; AtomPercentEnrichment = tracerDefData.AtomPercentEnrichment; InitialEnrichment = tracerDefData.InitialEnrichment; FinalEnrichment = tracerDefData.FinalEnrichment; IsotopesEluteEarlier = tracerDefData.IsotopesEluteEarlier; IsotopesEluteLater = tracerDefData.IsotopesEluteLater; }
public TracerDef(Workspace workspace, TracerDefData tracerDefData) { Workspace = workspace; Name = tracerDefData.Name; TraceeSymbol = tracerDefData.TracerSymbol; char aminoAcidSymbol; if (AminoAcidFormulas.LongNames.TryGetValue(TraceeSymbol, out aminoAcidSymbol)) { AminoAcidSymbol = aminoAcidSymbol; } DeltaMass = tracerDefData.DeltaMass; AtomCount = tracerDefData.AtomCount; AtomPercentEnrichment = tracerDefData.AtomPercentEnrichment; InitialApe = tracerDefData.InitialEnrichment; FinalApe = tracerDefData.FinalEnrichment; IsotopesEluteEarlier = tracerDefData.IsotopesEluteEarlier; IsotopesEluteLater = tracerDefData.IsotopesEluteLater; ComputeMasses(); }
public bool EqualPeakPicking(TracerDefData other) { return(EqualMasses(other) && IsotopesEluteEarlier.Equals(other.IsotopesEluteEarlier) && IsotopesEluteLater.Equals(other.IsotopesEluteLater)); }
private ListViewItem MakeListViewItem(TracerDefData tracerDef) { return new ListViewItem(tracerDef.Name); }
private void EditTracerDef(TracerDefData tracerDefData) { using (var dlg = new DefineLabelDialog(Workspace, tracerDefData)) { dlg.ShowDialog(this); } }
private void SetTracerDef(TracerDefData tracerDef) { tbxTracerName.Text = tracerDef.Name; tbxTracerSymbol.Text = tracerDef.TracerSymbol; tbxMassDifference.Text = tracerDef.DeltaMass.ToString(CultureInfo.CurrentCulture); tbxAtomCount.Text = tracerDef.AtomCount.ToString(CultureInfo.CurrentCulture); tbxAtomicPercentEnrichment.Text = tracerDef.AtomPercentEnrichment.ToString(CultureInfo.CurrentCulture); cbxEluteEarlier.Checked = tracerDef.IsotopesEluteEarlier; cbxEluteLater.Checked = tracerDef.IsotopesEluteLater; tbxInitialApe.Text = tracerDef.InitialEnrichment.ToString(CultureInfo.CurrentCulture); tbxFinalApe.Text = tracerDef.FinalEnrichment.ToString(CultureInfo.CurrentCulture); }
protected bool Equals(TracerDefData other) { return string.Equals(TracerSymbol, other.TracerSymbol) && string.Equals(Name, other.Name) && DeltaMass.Equals(other.DeltaMass) && AtomCount == other.AtomCount && AtomPercentEnrichment.Equals(other.AtomPercentEnrichment) && InitialEnrichment.Equals(other.InitialEnrichment) && FinalEnrichment.Equals(other.FinalEnrichment) && IsotopesEluteEarlier.Equals(other.IsotopesEluteEarlier) && IsotopesEluteLater.Equals(other.IsotopesEluteLater); }
public bool EqualPeakPicking(TracerDefData other) { return EqualMasses(other) && IsotopesEluteEarlier.Equals(other.IsotopesEluteEarlier) && IsotopesEluteLater.Equals(other.IsotopesEluteLater); }
public bool EqualMasses(TracerDefData other) { return TracerSymbol.Equals(other.TracerSymbol) && DeltaMass.Equals(other.DeltaMass) && AtomCount.Equals(other.AtomCount) && AtomPercentEnrichment.Equals(other.AtomPercentEnrichment); }