private void comboBoxProbability_SelectionChangeCommitted(object sender, EventArgs e) { int selectedProbability = Convert.ToInt32(comboBoxProbability.SelectedItem); ProbabilityEventArgs p = new ProbabilityEventArgs(); p.Probability = selectedProbability; if (ProbabilitySelected != null) { ProbabilitySelected(this, p); } }
private void ProbabilitySelected(object sender, ProbabilityEventArgs p) { _plugin.GetInstance <MidiProcessor>().Probability = p.Probability; }