// Test private void TestMathFuncs() { var numberA = 1; var numberB = 2; // Test Add function var addResult = myQrLibs.Add(numberA, numberB); // Test Subtract function var subtractResult = myQrLibs.Subtract(numberA, numberB); // Test Multiply function var multiplyResult = myQrLibs.Multiply(numberA, numberB); // Test Divide function var divideResult = myQrLibs.Divide(numberA, numberB); // Output results //Debug.WriteLine($"{numberA} + {numberB} = {addResult}"); //Debug.WriteLine($"{numberA} - {numberB} = {subtractResult}"); //Debug.WriteLine($"{numberA} * {numberB} = {multiplyResult}"); //Debug.WriteLine($"{numberA} / {numberB} = {divideResult}"); // TEST QR DECODE string str = "F22:1:3:0.00%M:0.00%M:9.00%M:9.00%M:9.00%M:9.00%M+3Y31"; int len = myQrLibs.QRDecode(str, 12); result = myQrLibs.QRGetResult(len); }
// Get data private void QrDecode() { int len; for (int runs = 0; runs < str.Length; runs++) { len = myQrLibs.QRDecode(str[runs], 12); termsList.Add(myQrLibs.QRGetResult(len)); } }