private void ReadThread(object obj) { FmsAssetTagSetting tag = obj as FmsAssetTagSetting; if (tag == null) { return; } string error = ""; string value = DeviceMonitor.ReadTagFormDevice(tag.PKNO, out error); if (!error.IsEmpty()) { value = error; } Dispatcher.BeginInvoke((Action)(delegate() { tbTagResult.Text = value; })); }