From bff0a4962f597be1b4ea040be43221a850b8ddb4 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 29 十二月 2020 11:55:04 +0800 Subject: [PATCH] 2020-12-29-1 --- 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