private void OnFaderValueChanged(FaderValueChangedArgs e) { if (FaderValueChanged != null) { FaderValueChanged(this, e); } }
private void Fader_ValueChanged(object sender, RangeBaseValueChangedEventArgs e) { var s = (Fader)sender; FaderValueChangedArgs args = new FaderValueChangedArgs() { offset = faders.IndexOf(s), value = (float)e.NewValue }; OnFaderValueChanged(args); }