예제 #1
0
 private void btnRaiseMusic_Click(object sender, EventArgs e)
 {
     if (Sound.MusicVolume() + 10 <= 100)
     {
         Sound.ChangeMusicVolume(10);
         lblMusicPercentage.Text = Sound.MusicVolume() + "%";
     }
 }
예제 #2
0
 private void btnLowerMusic_Click(object sender, EventArgs e)
 {
     if (Sound.MusicVolume() - 10 >= 0)
     {
         Sound.ChangeMusicVolume(-10);
         lblMusicPercentage.Text = Sound.MusicVolume() + "%";
     }
 }
예제 #3
0
 private void frmSettings_Load(object sender, EventArgs e)
 {
     lblMusicPercentage.Text = Sound.MusicVolume() + "%";
     lblSoundPercentage.Text = Sound.SoundVolume() + "%";
 }