private void Main_FormClosing(object sender, FormClosingEventArgs e) { if (DialogResult.Yes == MessageBox.Show("您确定要退出调度系统吗?", "询问", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { Logger.Info("退出系统"); RFIDRead.Close(); System.Environment.Exit(0); } else { e.Cancel = true; } }
private static void ThreadProc(object str) { RFIDRead.InitRFID(); RFIDRead.Connect(); }