![IDTECH Kiosk III Sdk Manual Download Page 31](http://html.mh-extra.com/html/idtech/kiosk-iii/kiosk-iii_sdk-manual_618746031.webp)
6.6 Sample Project Tutorial
23
{
case
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_APPROVED"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_APPROVED_OFFLINE:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_APPROVED_OFFLINE"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_DECLINED_OFFLINE:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_DECLINED_OFFLINE"
+
"
\
r
\
n"
);
break
;
case
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_DECLINED"
+
"
\
r
\
n"
);
break
;
case
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_GO_ONLINE"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_CALL_YOUR_BANK:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_CALL_YOUR_BANK"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_NOT_ACCEPTED:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_NOT_ACCEPTED"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_FALLBACK_TO_MSR:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_FALLBACK_TO_MSR"
+
"
\
r
\
n"
);
break
;
case
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_TIMEOUT"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_AUTHENTICATE_TRANSACTION:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_AUTHENTICATE_TRANSACTION"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_SWIPE_NON_ICC:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_SWIPE_NON_ICC"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_CTLS_TWO_CARDS:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_CTLS_TWO_CARDS"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_CTLS_TERMINATE:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_CTLS_TERMINATE"
+
"
\
r
\
n"
);
break
;
case
.EMV_RESULT_CODE_CTLS_TERMINATE_TRY_ANOTHER:
text += (
"EMV RESULT: "
+
"EMV_RESULT_CODE_CTLS_TERMINATE_TRY_ANOTHER"
+
"
\
r
\
n"
);
break
;
}
}
SetOutputText(text);
}
private
string
tlvToValues(byte[] tlv)
{
string
text =
""
;
Dictionary<string, string> dict = Common.processTLVUnencrypted(tlv);
foreach
(KeyValuePair<string, string> kvp
in
dict) text += kvp.Key +
": "
+ kvp.Value +
"
\
r
\
n"
;
return
text;
}
delegate
void
SetTextCallback(
string
text);
private
void
SetOutputText(
string
text)
{
// InvokeRequired required compares the thread ID of the
// calling thread to the thread ID of the creating thread.
// If these threads are different, it returns true.
if
(tbOutput.InvokeRequired)
{
SetTextCallback d =
new
SetTextCallback(SetOutputText);
Invoke(d,
new
object
[] { text });
}
else
{
try
{ tbOutput.AppendText(text +
"
\
r
\
n"
); }
catch
(Exception ex) { }
}
}
private
void
SetOutputTextLog(
string
text)
{
// InvokeRequired required compares the thread ID of the
// calling thread to the thread ID of the creating thread.
// If these threads are different, it returns true.
if
(logOutput.InvokeRequired)
{
SetTextCallback d =
new
SetTextCallback(SetOutputTextLog);
IDTech Windows SDK Guide for Kiosk III/IV #80136501-001