From c4f0723cc7053933a6e598eb0c58cfdf4e9d7459 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 04 一月 2021 14:13:01 +0800 Subject: [PATCH] Merge branch 'WJC' into NewFilePath --- HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs b/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs index 661eb0e..0a32222 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Curtain/CurtainModulePage.cs @@ -134,6 +134,7 @@ Height = Application.GetMinRealAverage(40), UnSelectedImagePath = "FunctionIcon/Curtain/CurtainCloseIcon.png", SelectedImagePath = "FunctionIcon/Curtain/CurtainCloseOnIcon.png", + IsSelected = curtain.trait_on_off.curValue.ToString() == "off", }; controlView.AddChidren(btnCurtainClose); @@ -145,6 +146,7 @@ Height = Application.GetMinRealAverage(40), UnSelectedImagePath = "FunctionIcon/Curtain/CurtainStopIcon.png", SelectedImagePath = "FunctionIcon/Curtain/CurtainStopOnIcon.png", + IsSelected = curtain.trait_on_off.curValue.ToString() == "stop", }; controlView.AddChidren(btnCurtainStop); @@ -156,6 +158,7 @@ Height = Application.GetMinRealAverage(40), UnSelectedImagePath = "FunctionIcon/Curtain/CurtainOpenIcon.png", SelectedImagePath = "FunctionIcon/Curtain/CurtainOpenOnIcon.png", + IsSelected = curtain.trait_on_off.curValue.ToString() == "on", }; controlView.AddChidren(btnCurtainOpen); -- Gitblit v1.8.0