Ejemplo n.º 1
0
        private void comboBoxDirection_SelectionChangeCommitted(object sender, EventArgs e)
        {
            Directions result;

            Enum.TryParse <Directions>(comboBoxDirection.SelectedValue.ToString(), out result);
            DirectionEventArgs d = new DirectionEventArgs();

            d.Direction = result;

            if (DirectionSelected != null)
            {
                DirectionSelected(this, d);
            }
        }
Ejemplo n.º 2
0
 private void DirectionSelected(object sender, DirectionEventArgs e)
 {
     _plugin.GetInstance <MidiProcessor>().Direction = e.Direction;
     _plugin.GetInstance <MidiProcessor>().OrderNoteOnEventsWithOctaves();
 }