private void btnJingle_Click(object sender, EventArgs e)
 {
     if (busylight != null)
     {
         Busylight.BusylightVolume vol = (Busylight.BusylightVolume)tbVolume.Value;
         busylight.Jingle(Busylight.BusylightColor.Yellow, Busylight.BusylightJingleClip.IM1, vol);
     }
 }
Esempio n. 2
0
        private void annoyUser(BusylightColor myColor)
        {
            //Play sound
            if (this.sound_file != "")
            {
                player = new SoundPlayer(sound_file);
                player.Play();
            }

            //Flash Busylight and play sound
            var controller = new Busylight.SDK();

            controller.Jingle(myColor, sound, volume);
            Thread.Sleep(5000);
            controller.Terminate();
        }