private void eftposManager_TransactionResponseEvent(object sender, AxPosEftLib._DPosEftEvents_TransactionResponseEventEvent e) { String code = e.errorCode; String text = e.errorText; long status = e.status; if (code == "00") { switch (Operation) { case Enums.State.Tag: PurchaseTag(); break; case Enums.State.Buy: // Purchase Bitcoins! grpTapTag.Visible = true; grpTrade.Visible = false; tmrEncode.Enabled = true; break; case Enums.State.Sell: // SELL Order // NONE OF THIS HAS EVER BEEN TESTED if (PlaceSellOrder(PrivateKey, PublicKey, HotWallet, CryptoCurrency.Amount)) { PrintTransaction("SELL"); } break; } } }
private void eftposManager_TransactionResponseEvent(object sender, AxPosEftLib._DPosEftEvents_TransactionResponseEventEvent e) { String strCode = e.errorCode; String strText = e.errorText; long lStatus = e.status; MessageBox.Show(String.Format("{0} - {1}", strCode, strText), "Transaction Response", MessageBoxButtons.OK, MessageBoxIcon.Information); }