示例#1
0
        /// <summary>
        /// 插入带芯片卡
        /// </summary>
        /// <returns></returns>
        protected Result InsertICCard()
        {
            CardReader.Status ret = CardReader.Insert_ICcard();
            if (ret != CardReader.Status.CARD_WAIT)
            {
                CommonData.BIsCardIn = true;
            }

            switch (ret)
            {
            case CardReader.Status.CARD_WAIT:
            {
                return(Result.Again);
            }

            case CardReader.Status.CARD_SUCC:
            {
                ReportSync("none");
                return(Result.Success);
            }

            default:
                return(Result.HardwareError);
            }
        }