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

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

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