定义_timer_elapsed事件,代码如下:
private void _timer_elapsed(object sender, system.timers.elapsedeventargs e)
{
_timer.interval=1000;
_timer.enabled=false;