From d6aec3027ebec50e1096af7da19d03b1e5f5bea4 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期六, 19 十二月 2020 21:33:00 +0800 Subject: [PATCH] 20201219-99 --- HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePage.cs | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePage.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePage.cs index 1e3b744..3e5be3b 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePage.cs @@ -353,7 +353,7 @@ { sensorListView.RemoveAll(); int index = 0; - foreach (var sensor in DB_ResidenceData.functionList.sensorsEnvironmentalScience) + foreach (var sensor in FunctionList.List.sensorsEnvironmentalScience) { LoadSensorDiv(sensor, index); index++; @@ -368,9 +368,9 @@ if (room.roomId == "" || sensor.roomIds.Contains(room.roomId)) { var sensorTag = sensor.sid; - if (sensor.bus_Data != null) + if (sensor.bus != null) { - sensorTag = ((int)sensor.functionType % 256) + "_" + sensor.bus_Data.SubnetID + "_" + sensor.bus_Data.DeviceID + "_" + sensor.bus_Data.loopId; + sensorTag = ((int)sensor.functionType % 256) + "_" + sensor.bus.SubnetID + "_" + sensor.bus.DeviceID + "_" + sensor.bus.LoopId; } FrameLayout sensorView = new FrameLayout() { @@ -422,10 +422,13 @@ }; sensorView.AddChidren(btnSensorTitle); btnSensorTitle.MouseUpEventHandler = (sender, e) => { - var esp = new EnvironmentalSensorPage(sensor); - MainPage.BasePageView.AddChidren(esp); - esp.LoadPage(); - MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + return; + #region F3闃舵 + //var esp = new EnvironmentalSensorPage(sensor); + //MainPage.BasePageView.AddChidren(esp); + //esp.LoadPage(); + //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + #endregion }; var btnInfoIcon = new Button() -- Gitblit v1.8.0