static void Main(string[] args) { const string logDataPath = "..\\..\\..\\CLIENT\\INSPECTOR.txt"; CLogIn.load(logDataPath); while (true) { string input = Console.ReadLine(); if (input != null) { string[] words = input.Split(' '); string id = words[0]; string pwd = words[1]; //Console.WriteLine("id:{0} pwd:{1}", id, pwd); bool test = CLogIn.doLogIn(id, pwd); if (test) { Console.WriteLine("LOGIN SUCCESS"); break; } else { Console.WriteLine("LOGIN FAIL"); } } } //Console.ReadKey(); }
static void Main(string[] args) { CLogIn.load(logDataPath); processLogIn(); while (true) { if (!CLogIn.getBusId()) { return; } processCardInfo(); } }
static void Main(string[] args) { CLogIn.load(logDataPath); processLogIn(); while (true) { if (!CLogIn.getBusId()) { break; } processCardInfo(); } Thread t_handler = new Thread(sendFilesToServer); t_handler.IsBackground = true; t_handler.Start(); t_handler.Join(); }