예제 #1
0
 private void Form1_MouseWheel(object sender, MouseEventArgs e)
 {
     if (e.Delta < 0)
     {
         if (colorSlider2.Value >= colorSlider2.MouseWheelBarPartitions)
         {
             colorSlider2.Value -= colorSlider2.MouseWheelBarPartitions;
         }
         else
         {
             colorSlider2.Value = colorSlider2.Minimum;
         }
     }
     else
     {
         if (colorSlider2.Value <= colorSlider2.Maximum - colorSlider2.MouseWheelBarPartitions)
         {
             colorSlider2.Value += colorSlider2.MouseWheelBarPartitions;
         }
         else
         {
             colorSlider2.Value = colorSlider2.Maximum;
         }
     }
     CommonInterface.SetVolume();
 }
예제 #2
0
 private void colorSlider2_Scroll(object sender, ScrollEventArgs e)
 {
     CommonInterface.SetVolume();
 }