public static void CleanPrecursor(List<IRange<double>> rangesToRemove, double precursorMZ, double lowWindow = LOW_PRECURSOR_CLEANING_WINDOW_MZ, double highWidnow = HIGH_PRECURSOR_CLEANING_WINDOW_MZ) { double lowMZ = precursorMZ - lowWindow; double highMZ = precursorMZ + highWidnow; MzRange range = new MzRange(lowMZ, highMZ); rangesToRemove.Add(new MzRange(lowMZ, highMZ)); }
private void button2_Click(object sender, EventArgs e) { double lowMZ = (double)numericUpDown5.Value; double highMZ = (double)numericUpDown6.Value; MzRange range = new MzRange(lowMZ, highMZ); listBox1.Items.Add(range); }