示例#1
0
文件: Main.cs 项目: dongdong-2009/AAA
        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;
            }
        }
示例#2
0
文件: Main.cs 项目: dongdong-2009/AAA
 private static void ThreadProc(object str)
 {
     RFIDRead.InitRFID();
     RFIDRead.Connect();
 }