private void dataSourceFilesRadioButton_CheckedChanged(object sender, EventArgs e) { panelFilesProps.Visible = dataSourceFilesRadioButton.Checked; var useFiles = dataSourceFilesRadioButton.Checked; ceCombo.Visible = !useFiles; ceLabel.Visible = !useFiles; if (useFiles) { iRTPeptidesLabel.Location = _iRTLabelPos; comboStandards.Location = _iRTComboPos; if (!Settings.Default.IrtStandardList.Contains(IrtStandard.AUTO)) { Settings.Default.IrtStandardList.Insert(1, IrtStandard.AUTO); } } else { iRTPeptidesLabel.Location = _actionLabelPos; comboStandards.Location = _actionComboPos; Settings.Default.IrtStandardList.Remove(IrtStandard.AUTO); PrositUIHelpers.CheckPrositSettings(this, _skylineWindow); } _driverStandards.LoadList(IrtStandard.EMPTY.GetKey()); btnNext.Text = dataSourceFilesRadioButton.Checked ? Resources.BuildLibraryDlg_btnPrevious_Click__Next__ : Resources.BuildLibraryDlg_OkWizardPage_Finish; }
public BuildLibraryDlg(IDocumentUIContainer documentContainer) { InitializeComponent(); Icon = Resources.Skyline; _documentUiContainer = documentContainer; panelFiles.Visible = false; textName.Focus(); textPath.Text = Settings.Default.LibraryDirectory; comboAction.SelectedItem = LibraryBuildAction.Create.GetLocalizedString(); textCutoff.Text = Settings.Default.LibraryResultCutOff.ToString(LocalizationHelper.CurrentCulture); if (documentContainer.Document.PeptideCount == 0) { cbFilter.Hide(); } else { cbFilter.Checked = Settings.Default.LibraryFilterDocumentPeptides; } cbKeepRedundant.Checked = Settings.Default.LibraryKeepRedundant; _helper = new MessageBoxHelper(this); _driverStandards = new SettingsListComboDriver <IrtStandard>(comboStandards, Settings.Default.IrtStandardList); _driverStandards.LoadList(IrtStandard.EMPTY.GetKey()); }
private void InitializeMsMsFilterUI() { _driverIsolationScheme = new SettingsListComboDriver <IsolationScheme>(comboIsolationScheme, Settings.Default.IsolationSchemeList); string sel = (FullScan.IsolationScheme != null ? FullScan.IsolationScheme.Name : null); _driverIsolationScheme.LoadList(sel); comboAcquisitionMethod.Items.AddRange(FullScanAcquisitionMethod.ALL.Cast <object>().ToArray()); comboProductAnalyzerType.Items.AddRange(TransitionFullScan.MASS_ANALYZERS.Cast <object>().ToArray()); comboAcquisitionMethod.SelectedItem = FullScan.AcquisitionMethod; // Update the product analyzer type in case the SelectedIndex is still -1 UpdateProductAnalyzerType(); }
public EditRTDlg(IEnumerable <RetentionTimeRegression> existing) { _existing = existing; InitializeComponent(); Icon = Resources.Skyline; _gridViewDriver = new RetentionTimeGridViewDriver(gridPeptides, bindingPeptides, new SortableBindingList <MeasuredPeptide>()); _driverCalculators = new SettingsListComboDriver <RetentionScoreCalculatorSpec>( comboCalculator, Settings.Default.RTScoreCalculatorList); _driverCalculators.LoadList(null); ShowPeptides(Settings.Default.EditRTVisible); }
public BuildLibraryDlg(SkylineWindow skylineWindow) { InitializeComponent(); Icon = Resources.Skyline; _skylineWindow = skylineWindow; _documentUiContainer = skylineWindow; // Store locations of those controls since we move the irt label/combo around _actionLabelPos = actionLabel.Location; _actionComboPos = comboAction.Location; _iRTLabelPos = iRTPeptidesLabel.Location; _iRTComboPos = comboStandards.Location; panelFiles.Visible = false; textName.Focus(); textPath.Text = Settings.Default.LibraryDirectory; comboAction.SelectedItem = LibraryBuildAction.Create.GetLocalizedString(); textCutoff.Text = Settings.Default.LibraryResultCutOff.ToString(LocalizationHelper.CurrentCulture); if (_documentUiContainer.Document.PeptideCount == 0) { cbFilter.Hide(); } else { cbFilter.Checked = Settings.Default.LibraryFilterDocumentPeptides; } cbKeepRedundant.Checked = Settings.Default.LibraryKeepRedundant; ceCombo.Items.AddRange( Enumerable.Range(PrositConstants.MIN_NCE, PrositConstants.MAX_NCE - PrositConstants.MIN_NCE + 1).Select(c => (object)c) .ToArray()); ceCombo.SelectedItem = Settings.Default.PrositNCE; _helper = new MessageBoxHelper(this); _driverStandards = new SettingsListComboDriver <IrtStandard>(comboStandards, Settings.Default.IrtStandardList); _driverStandards.LoadList(IrtStandard.EMPTY.GetKey()); }
private void InitializeMs1FilterUI() { _driverEnrichments = new SettingsListComboDriver <IsotopeEnrichments>(comboEnrichments, Settings.Default.IsotopeEnrichmentsList); var sel = (FullScan.IsotopeEnrichments != null ? FullScan.IsotopeEnrichments.Name : null); _driverEnrichments.LoadList(sel); comboPrecursorIsotopes.Items.AddRange( new object[] { FullScanPrecursorIsotopes.None.GetLocalizedString(), FullScanPrecursorIsotopes.Count.GetLocalizedString(), FullScanPrecursorIsotopes.Percent.GetLocalizedString() }); comboPrecursorAnalyzerType.Items.AddRange(TransitionFullScan.MASS_ANALYZERS.Cast <object>().ToArray()); comboPrecursorIsotopes.SelectedItem = FullScan.PrecursorIsotopes.GetLocalizedString(); // Update the precursor analyzer type in case the SelectedIndex is still -1 UpdatePrecursorAnalyzerType(); }
public TransitionSettingsUI(SkylineWindow parent) { InitializeComponent(); // Populate the fragment finder combo boxes foreach (string item in TransitionFilter.GetStartFragmentFinderLabels()) { comboRangeFrom.Items.Add(item); } foreach (string item in TransitionFilter.GetEndFragmentFinderLabels()) { comboRangeTo.Items.Add(item); } _parent = parent; _transitionSettings = _parent.DocumentUI.Settings.TransitionSettings; // Initialize prediction settings comboPrecursorMass.SelectedItem = Prediction.PrecursorMassType.GetLocalizedString(); comboIonMass.SelectedItem = Prediction.FragmentMassType.GetLocalizedString(); _driverCE = new SettingsListComboDriver <CollisionEnergyRegression>(comboCollisionEnergy, Settings.Default.CollisionEnergyList); string sel = (Prediction.CollisionEnergy == null ? null : Prediction.CollisionEnergy.Name); _driverCE.LoadList(sel); _driverDP = new SettingsListComboDriver <DeclusteringPotentialRegression>(comboDeclusterPotential, Settings.Default.DeclusterPotentialList); sel = (Prediction.DeclusteringPotential == null ? null : Prediction.DeclusteringPotential.Name); _driverDP.LoadList(sel); _driverCoV = new SettingsListComboDriver <CompensationVoltageParameters>(comboCompensationVoltage, Settings.Default.CompensationVoltageList); _driverCoV.LoadList(Prediction.CompensationVoltage == null ? null : Prediction.CompensationVoltage.Name); _driverOptimizationLibrary = new SettingsListComboDriver <OptimizationLibrary>(comboOptimizationLibrary, Settings.Default.OptimizationLibraryList); _driverOptimizationLibrary.LoadList(Prediction.OptimizedLibrary == null ? null : Prediction.OptimizedLibrary.Name); if (Prediction.OptimizedMethodType == OptimizedMethodType.None) { comboOptimizeType.SelectedIndex = 0; } else { cbUseOptimized.Checked = true; comboOptimizeType.SelectedItem = Prediction.OptimizedMethodType.GetLocalizedString(); } // Initialize filter settings textPrecursorCharges.Text = Filter.PrecursorCharges.ToArray().ToString(", "); // Not L10N? Internationalization of comma? textIonCharges.Text = Filter.ProductCharges.ToArray().ToString(", "); // Not L10N? Internationalization of comma? textIonTypes.Text = TransitionFilter.ToStringIonTypes(Filter.IonTypes, true); comboRangeFrom.SelectedItem = Filter.FragmentRangeFirst.Label; comboRangeTo.SelectedItem = Filter.FragmentRangeLast.Label; textExclusionWindow.Text = Filter.PrecursorMzWindow != 0 ? Filter.PrecursorMzWindow.ToString(LocalizationHelper.CurrentCulture) : string.Empty; cbExclusionUseDIAWindow.Checked = Filter.ExclusionUseDIAWindow; cbAutoSelect.Checked = Filter.AutoSelect; _driverIons = new MeasuredIonListBoxDriver(listAlwaysAdd, Settings.Default.MeasuredIonList); _driverIons.LoadList(Filter.MeasuredIons); // Initialize library settings cbLibraryPick.Checked = (Libraries.Pick != TransitionLibraryPick.none); panelPick.Visible = cbLibraryPick.Checked; textTolerance.Text = Libraries.IonMatchTolerance.ToString(LocalizationHelper.CurrentCulture); textIonCount.Text = Libraries.IonCount.ToString(LocalizationHelper.CurrentCulture); if (Libraries.Pick == TransitionLibraryPick.filter) { radioFiltered.Checked = true; } else if (Libraries.Pick == TransitionLibraryPick.all_plus) { radioAllAndFiltered.Checked = true; } // Initialize instrument settings textMinMz.Text = Instrument.MinMz.ToString(LocalizationHelper.CurrentCulture); textMaxMz.Text = Instrument.MaxMz.ToString(LocalizationHelper.CurrentCulture); cbDynamicMinimum.Checked = Instrument.IsDynamicMin; textMzMatchTolerance.Text = Instrument.MzMatchTolerance.ToString(LocalizationHelper.CurrentCulture); if (Instrument.MaxTransitions.HasValue) { textMaxTrans.Text = Instrument.MaxTransitions.Value.ToString(LocalizationHelper.CurrentCulture); } if (Instrument.MaxInclusions.HasValue) { textMaxInclusions.Text = Instrument.MaxInclusions.Value.ToString(LocalizationHelper.CurrentCulture); } if (Instrument.MinTime.HasValue) { textMinTime.Text = Instrument.MinTime.Value.ToString(LocalizationHelper.CurrentCulture); } if (Instrument.MaxTime.HasValue) { textMaxTime.Text = Instrument.MaxTime.Value.ToString(LocalizationHelper.CurrentCulture); } // Initialize full-scan settings FullScanSettingsControl = new FullScanSettingsControl(_parent) { Anchor = (AnchorStyles.Top | AnchorStyles.Left), Location = new Point(0, 0), Size = new Size(363, 491) }; FullScanSettingsControl.IsolationSchemeChangedEvent += IsolationSchemeChanged; tabFullScan.Controls.Add(FullScanSettingsControl); // VISUAL: // - Store the distance between the cbExclusionDIAWindow and the lower end of the box (to use as margin later) // - Shift the cbExclusionDIAWindow down (it is only higher in the designer for better manipulation) _lower_margin = groupBox1.Height - textExclusionWindow.Location.Y - textExclusionWindow.Height; int pixelShift = cbExclusionUseDIAWindow.Location.Y - lbPrecursorMzWindow.Location.Y; cbExclusionUseDIAWindow.Location = new Point(cbExclusionUseDIAWindow.Location.X, cbExclusionUseDIAWindow.Location.Y - pixelShift); DoIsolationSchemeChanged(); }