Beispiel #1
0
 public void setSpectrumType(string spectrum)
 {
     if (spectrum == "Auto")
     {
         spectrumType = phosphoRS.SpectrumType.None;
     }
     else if (spectrum == "Trap CID")
     {
         spectrumType = phosphoRS.SpectrumType.CID_CAD;
     }
     else if (spectrum == "Beam CID (HCD)")
     {
         spectrumType = phosphoRS.SpectrumType.HCD;
     }
     else if (spectrum == "ETD/ECD")
     {
         spectrumType = phosphoRS.SpectrumType.ECD_ETD;
     }
     else
     {
         throw new ArgumentException("invalid value \"" + spectrum + "\" for spectrum argument");
     }
 }
 public void setSpectrumType(string spectrum)
 {
     if (spectrum == "Auto")
         spectrumType = phosphoRS.SpectrumType.None;
     else if (spectrum == "Trap CID")
         spectrumType = phosphoRS.SpectrumType.CID_CAD;
     else if (spectrum == "Beam CID (HCD)")
         spectrumType = phosphoRS.SpectrumType.HCD;
     else if (spectrum == "ETD/ECD")
         spectrumType = phosphoRS.SpectrumType.ECD_ETD;
     else
         throw new ArgumentException("invalid value \"" + spectrum + "\" for spectrum argument");
 }