public void eraseCard(IntPtr sdkContext, UInt32 deviceID, bool isMasterDevice)
        {
            Console.WriteLine("Trying to erase card.");
            BS2ErrorCode result = (BS2ErrorCode)API.BS2_EraseCard(sdkContext, deviceID);

            if (result != BS2ErrorCode.BS_SDK_SUCCESS)
            {
                Console.WriteLine("Got error({0}).", result);
            }
        }