Exemple #1
0
 private void SafeSet(float Volume, bool Mute)
 {
     if (volumebar.InvokeRequired)
     {
         volumebar.Invoke(new MethodWithFloatArg(SafeSet), Volume, Mute);
     }
     else
     {
         volumebar.Value = Volume;
         volumebar.Mute  = Mute;
     }
 }
Exemple #2
0
 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);
         }
     }
 }