void _formHotKey_OnHotKeyPress(Message msg) { if (!_isSys) { try { using (Bitmap bmap = _sc.CaptureActive() as Bitmap) { if (bmap == null) { return; } string str = _qrcode.GetQRCodeString(bmap); if (!string.IsNullOrEmpty(str)) { FrmQRResault.ShowBox(str); } } } catch (Exception ex) { ShowMessage(ex.Message, "错误", ToolTipIcon.Error, 3); } } }
/// <summary> /// 读取QR /// </summary> /// <param name="bmap"></param> private void ReadQR(Bitmap bmap) { string str = _qrcode.GetQRCodeString(bmap); if (!string.IsNullOrEmpty(str)) { FrmQRResault.ShowBox(str); } }
private void ReadBase64(string base64) { string str = _base64Unit.GetBaseString(base64); if (!string.IsNullOrEmpty(str)) { FrmQRResault.ShowBox(str); } }
void _listener_OnClipboardWrite(Message msg) { if (!_isSys) { string str = _qrcode.GetQRCodeString(); if (!string.IsNullOrEmpty(str)) { FrmQRResault.ShowBox(str); } } }