static void Main(string[] args) { DSForm = new FormRealTime(); Application.Run(DSForm); //DSForm.updateTaginfo(row); }
static void Main() { InitTagsEPC(); DSForm = new FormRealTime(TagsEPC); // Create the thread object. This does not start the thread. Worker workerObject = new Worker(DSForm); Thread workerThread = new Thread(workerObject.DoWork); // Start the worker thread. workerThread.Start(); Console.WriteLine("main thread: Starting worker thread..."); Application.Run(DSForm); workerObject.RequestStop(); }
public Worker(FormRealTime objet) { DSForm = objet; }