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); } }
private void ledLighSwitch_Click(object sender, EventArgs e) { this.ledLighSwitch.On = !this.ledLighSwitch.On; _parent.SwitchLight(this.Channel, this.ledLighSwitch.On); }