示例#1
0
        void btnCardPSW2_Click(object sender, EventArgs e)
        {
            m_InputPSWThread = new Thread(new ThreadStart(DoReadUserPSWAgain));
            m_InputPSWThread.Start();

            frmInputPSWDialog             = new frmWaitDialog(StopWaitInputPSWThread, frmWaitDialogType.WaitInitDevice);
            frmInputPSWDialog.WindowState = FormWindowState.Maximized;
            frmInputPSWDialog.ShowDialog();
        }
示例#2
0
        void btnReadCard_Click(object sender, EventArgs e)
        {
            m_ReadCardThread = new Thread(new ThreadStart(DoReadCard));
            m_ReadCardThread.Start();

            frmReadCardDialog             = new frmWaitDialog(StopReadCardThread, frmWaitDialogType.WaitInitDevice);
            frmReadCardDialog.WindowState = FormWindowState.Maximized;
            frmReadCardDialog.ShowDialog();
        }
示例#3
0
        void btnOpenCard_Click(object sender, EventArgs e)
        {
            bool?yesorno = frmMessageBox.ShowMessageBox(System.Windows.MessageBoxButton.YesNo, "开卡会自动覆盖原有的卡号,是否继续?");

            if (yesorno == true)
            {
                m_OpenCardThread = new Thread(new ThreadStart(DoOpenCard));
                m_OpenCardThread.Start();

                frmOpenCardDialog             = new frmWaitDialog(StopOpenCardThread, frmWaitDialogType.WaitInitDevice);
                frmOpenCardDialog.WindowState = FormWindowState.Maximized;
                frmOpenCardDialog.ShowDialog();
            }
        }