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(); }
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(); }
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(); } }