Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Icard      card     = CardFactory.NewCard(CardFactory.CardKind.ShenSi);
            IDCardData cardinfo = new IDCardData();
            string     err      = "";
            bool       t        = card.ReadCard(ref cardinfo, ref err);

            if (t)
            {
                MessageBox.Show(cardinfo.Name);
            }
            else
            {
                MessageBox.Show(err);
            }
        }