private void MainForm_Load(object sender, EventArgs e) { Server.init(this); ConveyorBasicController.init(this); ConveyorCleverController.init(); RfidBasicController.init(); RfidCleverController.init(); _timer_update.Enabled = true; }
static void callDelegateThreadMain() { while (true) { string tag = RfidBasicController.read(); if (tag != null) { onDetectRfid(tag); } Thread.Sleep(Config.workingUnit); } }