Пример #1
0
        /// <summary>
        /// 读卡准备
        /// </summary>
        /// <param name="bSection">需进行读写操作的的扇区号</param>
        /// <returns></returns>
        private bool ReadCardsPrepare(byte bSection)
        {
            ReturnValueInfo rvInfo = YuChuanDevice.ReadWritePrepare();

            if (rvInfo.isError)
            {
                return(false);
            }

            byte[]          arrPwd   = YuChuanDevice.ChangeStrToHex(this._strSectionPwd);
            ReturnValueInfo rvVerify = YuChuanDevice.PwdVerify(arrPwd, YC_Enum_PwdVerifyMode.A_Mode, bSection);

            if (rvVerify.isError)
            {
                return(false);
            }
            return(true);
        }