Ejemplo n.º 1
0
 private void box_sound_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         //Play sound
         var controller = new Busylight.SDK();
         controller.Alert(new Busylight.BusylightColor {
             RedRgbValue = 0, GreenRgbValue = 0, BlueRgbValue = 0
         },
                          dictSound[box_sound.SelectedItem.ToString()],
                          dictVol[track_volume.Value]);
         Thread.Sleep(3000);
         controller.Terminate();
     }
     catch (KeyNotFoundException)
     {
         SimpleLoggerHelper.Log(Properties.Settings.Default.log_mode, "Something went wrong when defining the sound based on the form's current selection", Properties.Settings.Default.log_level, 2);
     }
 }
Ejemplo n.º 2
0
 public void stahp()
 {
     //Terminate controller
     controller.Terminate();
 }