Exemplo n.º 1
0
        /// <summary>
        /// 使用德卡读卡器
        /// </summary>
        public void UseDeCard()
        {
            DeCardReader deCardReader = new DeCardReader();

            CardReader          = new CpuCard(deCardReader);
            CardReader.ShowLog += this.ShowLog;
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text = "";
            int max = Convert.ToInt32(textBox2.Text);

            DeCardReader deCardReader = new DeCardReader();
            CpuCard      CardReader   = new CpuCard(deCardReader);


            for (ushort i = 1; i <= max; i++)
            {
                ApduMsg m = CardReader.DeleteFile(i);


                textBox1.AppendText("删除文件:" + i + "\r\n");
            }
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = "";
            int max = Convert.ToInt32(textBox2.Text);

            DeCardReader deCardReader = new DeCardReader();
            CpuCard      CardReader   = new CpuCard(deCardReader);


            for (ushort i = 1; i <= max; i++)
            {
                //ApduMsg msg = CardReader.SelectFileById(i);
                if (CardReader.ReadFile(i, out string msg))
                {
                    // DataSet ds =   ZipHelper.GetDatasetByString(msg);

                    textBox1.AppendText(i + "成功:" + msg + "\r\n");
                }
                else
                {
                    textBox1.AppendText(i + "失败:" + msg + "\r\n");
                }
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// 使用德卡读卡器
        /// </summary>
        public void UseDeCard()
        {
            DeCardReader deCardReader = new DeCardReader();

            CardReader = new CpuCard(deCardReader);
        }