Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.DoEvents();

            SIMAuthDaemonForm aSimExpressForm = new SIMAuthDaemonForm();

            Application.Run(aSimExpressForm);
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        public SIMAuthDaemonForm()
        {
            DaemonInstance = this;
            InitializeComponent();

            m_aCardResourceManager = new SCardResourceManager();

            // Customize the standard CardExpressForm by setting its properties to our desire.

            m_aCardForm.FooterBackColor = Color.FromArgb(0xF0, 0xF6, 0xFD);

            // First of all we must establish the Smart Card Resource Manager context. Once
            // this is done we must ensure that the context is ultimately released again.

            m_aCardResourceManager.EstablishContext(SCardContextScope.User);

            LogMessage += (string msg) => { BeginInvoke(new Action(() => { txtLog.AppendText(msg + Environment.NewLine); })); };
        }
Esempio n. 3
0
        public byte[] RunGsmAlgo(byte[] rand)
        {
            byte[] res = SIMAuthDaemonForm.GetInstance().RunGsmAlgo(rand);

            return(res);
        }