Ejemplo n.º 1
0
 private void btnAllON_Click(object sender, EventArgs e)
 {
     if (this.btnAllON.Text == "All ON")
     {
         this.btnAllON.Text = "All OFF";
         _parent.SwitchLight(LightChannel.CHAll, true);
     }
     else
     {
         this.btnAllON.Text = "All ON";
         _parent.SwitchLight(LightChannel.CHAll, false);
     }
 }
Ejemplo n.º 2
0
 private void ledLighSwitch_Click(object sender, EventArgs e)
 {
     this.ledLighSwitch.On = !this.ledLighSwitch.On;
     _parent.SwitchLight(this.Channel, this.ledLighSwitch.On);
 }