示例#1
0
        private void InitCard_Click(object sender, RoutedEventArgs e)
        {
            if (this.smartCard == null)
            {
                String msg = String.Format("Please select a card to init");
                System.Windows.MessageBox.Show(msg);
                return;
            }
            InitCardWindow initCard = new InitCardWindow(this.smartCard.sIO.GetReader().ReaderName);

            initCard.ShowDialog();
            UpdateDataGrid();

            /*
             * KeyPair pq = new KeyPair(p, q);
             * PinPuk pp;
             * this.smartCard.InitDevice(pq, new byte[] { 0x01, 0x02, 0x03, 0x04 }, out pp);
             */
        }
 private void InitCard_Click(object sender, RoutedEventArgs e)
 {
   if (this.smartCard == null)
   {
     String msg = String.Format("Please select a card to init");
     System.Windows.MessageBox.Show(msg);
     return;
   }
   InitCardWindow initCard = new InitCardWindow(this.smartCard.sIO.GetReader().ReaderName);
   initCard.ShowDialog();
   UpdateDataGrid();
   /*
   KeyPair pq = new KeyPair(p, q);
   PinPuk pp;
   this.smartCard.InitDevice(pq, new byte[] { 0x01, 0x02, 0x03, 0x04 }, out pp);
   */
 }