private void chkSound_CheckedChanged(object sender, EventArgs e) { if (chkSound.Checked) { SoundCollection.ChangeSoundVolume(0); sldSound.Enabled = false; } else { SoundCollection.ChangeSoundVolume((int)sldSound.Value); sldSound.Enabled = true; } }
private void sldSound_Scroll(object sender, EventArgs e) { SoundCollection.ChangeSoundVolume((int)sldSound.Value); }