From 2ae36ddb40d28c62b64a2fdd4c3033e7d65d5cfb Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 04 三月 2021 15:20:29 +0800 Subject: [PATCH] 2021-0304-1 --- HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SensorPirPage.cs | 21 ++------------------- 1 files changed, 2 insertions(+), 19 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SensorPirPage.cs b/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SensorPirPage.cs index a1815aa..1599610 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SensorPirPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ArmSensor/SensorPirPage.cs @@ -36,9 +36,6 @@ this.InitFrameWhiteContent1(); //鍒濆鍖栫浜屼釜绱㈠紩椤电殑鍐呭 this.InitFrameWhiteContent2(); - - //鍒锋柊褰撳墠璁惧鐨勭姸鎬佺紦瀛� - this.RefreshNowDeviceStatuMemory(this.device); //鍒锋柊鐣岄潰鐘舵�� this.RefreshFormStatu(); //璇诲彇鐘舵�� @@ -98,8 +95,6 @@ //涓嶆槸鍚屼竴涓笢瑗� if (this.device.sid != i_LocalDevice.sid) { return; } - //鍒锋柊褰撳墠璁惧鐨勭姸鎬佺紦瀛� - this.RefreshNowDeviceStatuMemory(i_LocalDevice); //鍒锋柊鐣岄潰鐘舵�� this.RefreshFormStatu(); } @@ -118,10 +113,10 @@ private void RefreshFormStatu() { Application.RunOnMainThread(()=>{ - var temp = device.status.Find((sta) => sta.key == FunctionAttributeKey.Status); + var temp = device.attributes.Find((sta) => sta.key == FunctionAttributeKey.Status); if (temp != null) { - if (temp.value == "true") + if (temp.state == "true") { btnIcon.IsSelected = true; btnSuctionView.TextID = StringId.Someone; @@ -140,18 +135,6 @@ #endregion #region 鈻� 涓�鑸柟娉昣__________________________ - - /// <summary> - /// 鍒锋柊褰撳墠璁惧鐨勭姸鎬佺紦瀛� - /// </summary> - private void RefreshNowDeviceStatuMemory(Function i_LocalDevice) - { - foreach (var data in i_LocalDevice.status) - { - //寮�鍏� - //if (data.key == "on_off") { this.weepRobotData.Cleaning = data.value.ToLower() == "on"; } - } - } #endregion } -- Gitblit v1.8.0