The sampling system is controlled by an adjustable programtimer or by a manual pushbutton.
取样系统用可调程序定时器或手动操作的按纽控制。
2
In a long-running program, the Timer is probably best created as a daemon thread (using the constructors that take a Boolean parameter to indicate daemon status), so it won't keep the VM alive.
If Application.DoEvents is called from your code, your program flow may be interrupted in order to process the timer events generated by an instance of this class.