public void PopulateTable(PeptideModifications Mods) { foreach (var mod in Mods.Mods) { if (String.IsNullOrEmpty(mod.AA) | String.IsNullOrEmpty(mod.Mass)) { continue; } dataGridViewModifications.Rows.Add(mod.Mass, mod.AA, mod.Fixed, !mod.Fixed); } }
public RawToolsGUI() { InitializeComponent(); peptideModifications = new PeptideModifications(); //testDialog = new PeptideModificationForm(); //comboBoxMinCharge.SelectedIndexChanged -= new System.EventHandler(comboBoxMinCharge_SelectedIndexChanged); //comboBoxMaxCharge.SelectedIndexChanged -= new System.EventHandler(comboBoxMaxCharge_SelectedIndexChanged); comboBoxMaxCharge.SelectedIndex = 3; previousMaxChargeIndex = comboBoxMaxCharge.SelectedIndex; comboBoxMinCharge.SelectedIndex = 1; previousMinChargeIndex = comboBoxMinCharge.SelectedIndex; //comboBoxMinCharge.SelectedIndexChanged += new System.EventHandler(comboBoxMinCharge_SelectedIndexChanged); //comboBoxMaxCharge.SelectedIndexChanged += new System.EventHandler(comboBoxMaxCharge_SelectedIndexChanged); comboBoxLabelingReagents.SelectedIndex = 0; }
private void reset() { foreach (Control x in groupBoxChromatograms.Controls) { if (x is CheckBox) { ((CheckBox)x).Checked = false; } } foreach (Control x in groupBoxRawFiles.Controls) { if (x is TextBox) { ((TextBox)x).Clear(); } } radioButtonSelectDirectory.Checked = true; textBoxDataOutputDir.Clear(); checkBoxMgfLowMass.Checked = false; foreach (Control x in groupBoxMode.Controls) { if (x is CheckBox) { ((CheckBox)x).Checked = false; } } checkBoxRefinePrecursor.Checked = true; comboBoxMinCharge.Text = "0"; comboBoxMaxCharge.Text = "4"; comboBoxMinCharge.Text = "2"; foreach (Control x in groupBoxDataOutput.Controls) { if (x is CheckBox) { ((CheckBox)x).Checked = false; } } radioButtonSearchNone.Checked = true; foreach (Control x in groupBoxQcOptions.Controls) { if (x is TextBox) { ((TextBox)x).Clear(); } } textBoxNumSpectra.Text = "10000"; peptideModifications = new PeptideModifications(); foreach (Control x in groupBoxQuantOpt.Controls) { if (x is CheckBox) { ((CheckBox)x).Checked = false; } } foreach (Control x in groupBoxQuantOpt.Controls) { if (x is TextBox) { ((TextBox)x).Text = "0"; } } comboBoxLabelingReagents.Text = "- select -"; foreach (Control x in groupBoxMgfOpts.Controls) { if (x is CheckBox) { ((CheckBox)x).Checked = false; } } foreach (Control x in groupBoxMgfOpts.Controls) { if (x is TextBox) { ((TextBox)x).Text = "0"; } } }