예제 #1
0
        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);
            }
        }
예제 #2
0
 private void ProbabilitySelected(object sender, ProbabilityEventArgs p)
 {
     _plugin.GetInstance <MidiProcessor>().Probability = p.Probability;
 }