/// <summary>
 /// Update the  window
 /// </summary>
 /// <param name="result"></param>
 internal void UpdateWindow(QuantResult result)
 {
     _result = result;
     GetSpectra(_result);
     SetCitInfo();
     ValidationUIUtilities.ClearChart(chartMS1);
     ValidationUIUtilities.ClearChart(chartMS2);
     ValidationUIUtilities.CreateMS1Chart(chartMS1, citSpectrum);
     ValidationUIUtilities.CreateLoneCitMs2Chart(chartMS2, citSpectrum);
     ValidationUIUtilities.FillIonGridGeneral(metroGridCitIons, citSpectrum, HelperUtilities.CreateAAArray(_result.Sequence));
     if (Quantification.QuantificationResults.Contains(result))
     {
         metroButtonAddQuant.Enabled    = false;
         metroButtonRemoveQuant.Enabled = true;
     }
     else
     {
         metroButtonAddQuant.Enabled    = true;
         metroButtonRemoveQuant.Enabled = false;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Update the quantification window.
        /// </summary>
        /// <param name="result">The quantification result.</param>
        internal void UpdateWindow(QuantResult result)
        {
            // Set the result
            _result = result;
            // Get the spectra
            GetSpectra(_result);
            // Add the info
            SetCitInfo();
            SetArgInfo();
            // Clear the charts
            ValidationUIUtilities.ClearChart(chartArgMS1);
            ValidationUIUtilities.ClearChart(chartCitMS1);
            ValidationUIUtilities.ClearChart(chartMS2);
            // Create the charts
            ValidationUIUtilities.CreateMS1Chart(chartArgMS1, argSpectrum);
            ValidationUIUtilities.CreateMS1Chart(chartCitMS1, citSpectrum);
            ValidationUIUtilities.CreatePairedMs2Chart(chartMS2, citSpectrum, argSpectrum);
            // Create the ion grid
            ValidationUIUtilities.FillIonGridGeneral(metroGridArgIons, argSpectrum, HelperUtilities.CreateAAArray(_result.Sequence));
            ValidationUIUtilities.FillIonGridGeneral(metroGridCitIons, citSpectrum, HelperUtilities.CreateAAArray(_result.Sequence));
            // Set the title and spectrum ID
            labelTitel.Text = string.Format("Quantification - Paired (By {0})", _result.ValidationBy);
            metroLabelCitSpectrumID.Text = _result.CitSpectrumID.ToString();
            metroLabelArgSpectrumID.Text = _result.ArgSpectrumID.ToString();

            if (Quantification.QuantificationResults.Contains(result))
            {
                metroButtonAddQuant.Enabled    = false;
                metroButtonRemoveQuant.Enabled = true;
            }
            else
            {
                metroButtonAddQuant.Enabled    = true;
                metroButtonRemoveQuant.Enabled = false;
            }
        }