protected void OnSetActiveInstrument(object sender, ActiveInstrumentEventArgs eventArgs) { EventHandler <ActiveInstrumentEventArgs> temp = SetActiveInstrument; if (temp != null) { temp(sender, eventArgs); } }
private void patEditor_SetActiveInstrument(object sender, ActiveInstrumentEventArgs e) { if (e.Id != null) { string idLowerInvariant = e.Id.ToLowerInvariant(); foreach (Instrument instrument in this.currentSong.Instruments) { if (instrument.ID.ToLowerInvariant() == idLowerInvariant) { this.lstInstruments.SelectedItem = instrument; break; } } } }
private void patView_SetActiveInstrument(object sender, ActiveInstrumentEventArgs e) { this.OnSetActiveInstrument(sender, e); }
protected void OnSetActiveInstrument(object sender, ActiveInstrumentEventArgs eventArgs) { EventHandler<ActiveInstrumentEventArgs> temp = SetActiveInstrument; if (temp != null) { temp(sender, eventArgs); } }
protected void OnSetActiveInstrument(object sender, ActiveInstrumentEventArgs eventArgs) { SetActiveInstrument?.Invoke(sender, eventArgs); }