private void cbPenTipPowerOn_CheckedChanged(object sender, EventArgs e) { Request( delegate { mPenCommV1.ReqSetupPenAutoPowerOn(cbPenTipPowerOn.Checked); }, delegate { mPenCommV2.ReqSetupPenAutoPowerOn(cbPenTipPowerOn.Checked); } ); }
/// <summary> /// Sets the status of the auto power on property that if write the pen, turn on when pen is down. /// </summary> /// <param name="seton">true if you want to use, otherwise false.</param> public void ReqSetupPenAutoPowerOn(bool seton) { if (IsV1Comm) { mCommV1.ReqSetupPenAutoPowerOn(seton); } else { mCommV2.ReqSetupPenAutoPowerOn(seton); } }