/// <summary> /// Sets the states of the handsets lamps on or off. /// </summary> /// <param name="bLight1">Turn light on handset 1 on/off</param> /// <param name="bLight2">Turn light on handset 2 on/off</param> /// <param name="bLight3">Turn light on handset 3 on/off</param> /// <param name="bLight4">Turn light on handset 4 on/off</param> public void SetLights(bool bLight1, bool bLight2, bool bLight3, bool bLight4) { if (_deviceWasRemoved) return; var oRep = new BuzzOutputReport(this); // create output report oRep.SetLightStates(bLight1, bLight2, bLight3, bLight4); // set the lights states try { Write(oRep); // write the output report } catch { // Device may have been removed! } }
/// <summary> /// Sets the states of the handsets lamps on or off. /// </summary> /// <param name="bLight1">Turn light on handset 1 on/off</param> /// <param name="bLight2">Turn light on handset 2 on/off</param> /// <param name="bLight3">Turn light on handset 3 on/off</param> /// <param name="bLight4">Turn light on handset 4 on/off</param> public void SetLights(bool bLight1, bool bLight2, bool bLight3, bool bLight4) { if (_deviceWasRemoved) { return; } var oRep = new BuzzOutputReport(this); // create output report oRep.SetLightStates(bLight1, bLight2, bLight3, bLight4); // set the lights states try { Write(oRep); // write the output report } catch { // Device may have been removed! } }