Esempio n. 1
0
 private void btnSetNightLuminance_Click(object sender, EventArgs e)
 {
     var message = new KdmWriteMessage { OperationCode = Constants.OperationCodes.WriteCommands.SetNightLuminance.Code, Data = (byte)this.numNightLuminance.Value };
     this.deviceProxy.Write(message.GetBytes());
 }
Esempio n. 2
0
 private void btnAmLcdHeaterControl_Click(object sender, EventArgs e)
 {
     var mode = this.cmbAmLcdHeaterControl.SelectedIndex;
     var heaterControl = this.rdbAmLcdHeaterControlOn.Checked ? 2 : 0;
     var message = new KdmWriteMessage { OperationCode = Constants.OperationCodes.WriteCommands.SetAmLcdHeaterControl.Code, Data = (byte)(mode + heaterControl) };
     this.deviceProxy.Write(message.GetBytes());
 }
Esempio n. 3
0
 private void btnSetBackLightControl_Click(object sender, EventArgs e)
 {
     var backlightControl = this.rdbBackLightControlOn.Checked ? 1 : 0;
     var message = new KdmWriteMessage { OperationCode = Constants.OperationCodes.WriteCommands.SetBackLightControl.Code, Data = (byte)backlightControl };
     this.deviceProxy.Write(message.GetBytes());
 }