private void invokeMuteChangedEvent(int track, bool mute) { if (MuteChanged != null) { MuteChanged.Invoke(track, mute); } }
public void SetMute(bool mute) { if (mute == IsMuted) { return; } if (mute) { VolumeBeforeMute = Volume; Volume = MinVolume; } else { Volume = VolumeBeforeMute; } IsMuted = mute; MuteChanged?.Invoke(this, new MuteChangedEventArgs(mute)); }
protected virtual void OnMuteChanged(EventArgs e) { MuteChanged?.Invoke(this, e); }
private void OnMuteChanged(bool mute) { MuteChanged?.Invoke(this, new MuteChangedEventArgs { MuteState = mute }); }
private void MuteChangedSignal_SignalRaised(ISignal sender, IList <object> args) { MuteChanged?.Invoke(this, (bool)args[0]); }
/// <exception cref="Exception">A delegate callback throws an exception.</exception> protected virtual void OnMuteChanged(bool mute) { MuteChanged?.Invoke(mute); }
/// <summary> /// Raises the <see cref="MuteChanged" /> event. /// </summary> /// <seealso cref="EventArgs" /> protected virtual void OnMuteChanged() { MuteChanged?.Invoke(this, EventArgs.Empty); }