Example #1
0
 private void invokeMuteChangedEvent(int track, bool mute)
 {
     if (MuteChanged != null)
     {
         MuteChanged.Invoke(track, mute);
     }
 }
Example #2
0
        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));
        }
Example #3
0
 protected virtual void OnMuteChanged(EventArgs e)
 {
     MuteChanged?.Invoke(this, e);
 }
 private void OnMuteChanged(bool mute)
 {
     MuteChanged?.Invoke(this, new MuteChangedEventArgs {
         MuteState = mute
     });
 }
Example #5
0
 private void MuteChangedSignal_SignalRaised(ISignal sender, IList <object> args)
 {
     MuteChanged?.Invoke(this, (bool)args[0]);
 }
Example #6
0
 /// <exception cref="Exception">A delegate callback throws an exception.</exception>
 protected virtual void OnMuteChanged(bool mute)
 {
     MuteChanged?.Invoke(mute);
 }
Example #7
0
 /// <summary>
 ///     Raises the <see cref="MuteChanged" /> event.
 /// </summary>
 /// <seealso cref="EventArgs" />
 protected virtual void OnMuteChanged()
 {
     MuteChanged?.Invoke(this, EventArgs.Empty);
 }