private void checkBoxSwing_CheckedChanged(object sender, EventArgs e) { bool selectedSwing = checkBoxSwing.Checked; SwingEventArgs s = new SwingEventArgs(); s.Swing = selectedSwing; if (SwingSelected != null) { SwingSelected(this, s); } }
private void SwingSelected(object sender, SwingEventArgs s) { _plugin.GetInstance <MidiProcessor>().Swing = s.Swing; _plugin.GetInstance <MidiProcessor>().CountRythm(); }