From c7c61c603b16c0bf2582d81561bdfbe48ab9440c Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 19 三月 2021 09:42:37 +0800 Subject: [PATCH] 1.电视控制修改 --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs index 626c205..715e144 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs @@ -80,23 +80,27 @@ if (Pir.pirDeviceList.Count != 0) { - if (function != null) - { - var pir = function as Pir; - Pir.currPir = pir; - } - else - { - Pir.currPir = Pir.pirDeviceList[0]; - } + //if (function != null) + //{ + // Pir pir = new Pir(); + // pir.name = function.name; + // pir.deviceId = function.deviceId; + // pir.sid = function.sid; + // Pir.currPir = pir; + //} + //else + //{ + // Pir.currPir = Pir.pirDeviceList[0]; + //} //榛樿绗竴涓孩澶栧疂 int sum = 0; + Pir.currPir = Pir.pirDeviceList[0]; for (int i = 0; i < Pir.pirDeviceList.Count; i++) { //鏌ユ壘 sum += Pir.pirDeviceList[i].FunctioList.Count; } - deviceNameBtn.Text = Pir.currPir.name; + deviceNameBtn.Text = Pir.pirDeviceList[0].name; mainView.numberDeviceBtn.Text = Pir.pirDeviceList.Count.ToString() + Language.StringByID(StringId.ge); mainView.currDeviceNumberControlBtn.Text = sum.ToString() + Language.StringByID(StringId.ge); } -- Gitblit v1.8.0