コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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);
         }
     }
 }