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

修复 当没有布局文件时,manager.layout.GageTabItems=null 出错

parent 735de845
...@@ -82,7 +82,7 @@ namespace FLY.Thick.Base.UI.OnInit ...@@ -82,7 +82,7 @@ namespace FLY.Thick.Base.UI.OnInit
DynArea dynarea = s as DynArea; DynArea dynarea = s as DynArea;
var t = tags.Find(_t => _t.dynArea == dynarea); var t = tags.Find(_t => _t.dynArea == dynarea);
if (e.PropertyName == "ControllerState") if (e.PropertyName == nameof(DynArea.ControllerState))
{ {
UpdateControllerState(t); UpdateControllerState(t);
} }
...@@ -104,6 +104,8 @@ namespace FLY.Thick.Base.UI.OnInit ...@@ -104,6 +104,8 @@ namespace FLY.Thick.Base.UI.OnInit
return; return;
//找出设备页面 //找出设备页面
if (manager.layout.GageTabItems == null)
return;
var gageTabItems = from _gageTabItem in manager.layout.GageTabItems where _gageTabItem.ServiceContainerName == rontainerName select _gageTabItem; var gageTabItems = from _gageTabItem in manager.layout.GageTabItems where _gageTabItem.ServiceContainerName == rontainerName select _gageTabItem;
if (gageTabItems.Count() == 0) if (gageTabItems.Count() == 0)
return; return;
......
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