public TransitionSettingsControl(IModifyDocumentContainer documentContainer) { _documentContainer = documentContainer; InitializeComponent(); SetFields(_documentContainer.Document.Settings.TransitionSettings); PeptideIonTypes = PeptideIonTypes.Union(new[] { IonType.precursor, IonType.y }).ToArray(); // Add p, y if not already set InitialPeptideIonTypes = PeptideIonTypes.ToArray(); }
public TransitionSettingsControl(IModifyDocumentContainer documentContainer) { _documentContainer = documentContainer; InitializeComponent(); foreach (string item in TransitionFilter.GetStartFragmentFinderLabels()) { comboRangeFrom.Items.Add(item); } foreach (string item in TransitionFilter.GetEndFragmentFinderLabels()) { comboRangeTo.Items.Add(item); } SetFields(_documentContainer.Document.Settings.TransitionSettings); PeptideIonTypes = PeptideIonTypes.Union(new[] { IonType.precursor, IonType.y }).ToArray(); // Add p, y if not already set InitialPeptideIonTypes = PeptideIonTypes.ToArray(); }