private void btnSwipeCard_Click(object sender, EventArgs e) { using (var dlg = new FormDeviceData()) { if (dlg.ShowDialog(this, CloudPos.API.DEV_MAGSTRIPE) == DialogResult.OK) { Log("Inject Mag Stripe Data: " + dlg.Data); CloudPOS.DeviceData(CloudPos.API.DEV_MAGSTRIPE, dlg.Data); } } }
private void btnScanBarcode_Click(object sender, EventArgs e) { using (var dlg = new FormDeviceData()) { if (dlg.ShowDialog(this, CloudPos.API.DEV_BARCODE) == DialogResult.OK) { Log("Inject Bar Code: " + dlg.Data); CloudPOS.DeviceData(CloudPos.API.DEV_BARCODE, dlg.Data); } } }