110,536
社区成员
发帖
与我相关
我的任务
分享
void threadTimerCallback(object obj)
{
if(this.InvokeRequired)
{
comm.poll();//通讯
foreach(var stationRecord in comm.data)
{
db.add(stationRecord);
lstRecord[stationRecord.StationId]=stationRecord;
}
BeginInvoke(new EventHandler(RunOnWorkerThread),nulll);
}
}
void RunOnWorkerThread(object sender,EventArgs e)
{
WindowRefresh(lstRecord);//更新界面
}