private void SafeSet(float Volume, bool Mute) { if (volumebar.InvokeRequired) { volumebar.Invoke(new MethodWithFloatArg(SafeSet), Volume, Mute); } else { volumebar.Value = Volume; volumebar.Mute = Mute; } }
private void SafeSet(float Volume, bool Mute) { if (volumebar.InvokeRequired) { volumebar.Invoke(new MethodWithFloatArg(SafeSet), Volume, Mute); } else { volumebar.Value = Volume; volumebar.Mute = Mute; if (volumebar.VolumeMuteChanged != null) { volumebar.VolumeMuteChanged(this, null); } } }