Commit a33678ba authored by 潘栩锋's avatar 潘栩锋 🚴

修复 SyncPropServiceClient 当客户端没有 对应 ObjName 时的出错

parent fa1cdf1e
......@@ -140,6 +140,8 @@ namespace FLY.OBJComponents.Client
Dictionary<string, Dictionary<string, object>> DsDso = JsonConvert.DeserializeObject<Dictionary<string, Dictionary<string, object>>>(json);
IsInPushValue = true;
foreach (var Dso in DsDso)
{
if (ObjNames.ContainsKey(Dso.Key))
{
INotifyPropertyChanged obj = ObjNames[Dso.Key] as INotifyPropertyChanged;
obj.PropertyChanged -= Data_PropertyChanged;
......@@ -149,6 +151,7 @@ namespace FLY.OBJComponents.Client
}
obj.PropertyChanged += Data_PropertyChanged;
}
}
IsInPushValue = false;
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment