Beispiel #1
0
            public string GetAxisTitle(RTPeptideValue rtPeptideValue)
            {
                string calculatorName = _retentionTimeRegression.Calculator.Name;

                if (rtPeptideValue == RTPeptideValue.Retention || rtPeptideValue == RTPeptideValue.All)
                {
                    return(string.Format(Resources.RegressionUnconversion_CalculatorScoreFormat, calculatorName));
                }
                return(string.Format(Resources.RegressionUnconversion_CalculatorScoreValueFormat, calculatorName, ToLocalizedString(rtPeptideValue)));
            }
Beispiel #2
0
        public static string ToLocalizedString(RTPeptideValue rtPeptideValue)
        {
            switch (rtPeptideValue)
            {
            case RTPeptideValue.All:
            case RTPeptideValue.Retention:
                return(Resources.RtGraphValue_Retention_Time);

            case RTPeptideValue.FWB:
                return(Resources.RtGraphValue_FWB_Time);

            case RTPeptideValue.FWHM:
                return(Resources.RtGraphValue_FWHM_Time);
            }
            throw new ArgumentException(rtPeptideValue.ToString());
        }
Beispiel #3
0
 public RetentionTimeTransform(RTPeptideValue rtPeptideValue, IRetentionTimeTransformOp rtAlignment, AggregateOp aggregateOp)
 {
     RtPeptideValue = rtPeptideValue;
     RtTransformOp  = rtAlignment;
     AggregateOp    = aggregateOp;
 }
Beispiel #4
0
 public string GetAxisTitle(RTPeptideValue rtPeptideValue)
 {
     return(string.Format(Resources.RtAlignment_AxisTitleAlignedTo, ToLocalizedString(rtPeptideValue), ChromatogramSet.Name));
 }
Beispiel #5
0
 public void ShowRTPeptideValue(RTPeptideValue value)
 {
     Settings.Default.RTPeptideValue = value.ToString();
     UpdateRetentionTimeGraph();
 }