private void cbBeep_CheckedChanged(object sender, EventArgs e) { Request( delegate { mPenCommV1.ReqSetupPenBeep(cbBeep.Checked); }, delegate { mPenCommV2.ReqSetupPenBeep(cbBeep.Checked); } ); }
/// <summary> /// Sets the status of the beep property. /// </summary> /// <param name="seton">true if you want to listen sound of pen, otherwise false.</param> public void ReqSetupPenBeep(bool seton) { if (IsV1Comm) { mCommV1.ReqSetupPenBeep(seton); } else { mCommV2.ReqSetupPenBeep(seton); } }