From dcc0f5b5d4315227c33d91e5750c296450d5a4d5 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 22 九月 2022 14:31:55 +0800 Subject: [PATCH] 光伏卡片数据显示 --- HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs index 1f6ad58..9c1d100 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs @@ -440,6 +440,16 @@ SelectedImagePath = $"FunctionIcon/Acst/{imageFolder}/CollectionIcon.png", }; subTitleView.AddChidren(btnCollection); + //鏀惰棌 + btnCollection.MouseUpEventHandler = (sender, e) => { + function.collect = !function.collect; + btnCollection.IsSelected = function.collect; + + //var http = new DAL.Server.HttpServerRequest(); + //http.CollectDevice(function.deviceId); + function.CollectFunction(); + + }; var btnTitleText = new Button() { @@ -511,7 +521,7 @@ Gravity = Gravity.CenterVertical, Width = Application.GetRealWidth(38), Height = Application.GetRealWidth(38), - UnSelectedImagePath = $"FunctionIcon/Acst/{imageFolder}/ModeCoolIcon2.png", + UnSelectedImagePath = "FunctionIcon/Acst/grey/ModeCoolIcon2.png", SelectedImagePath = $"FunctionIcon/Acst/{imageFolder}/ModeCoolIcon2.png", TextAlignment = TextAlignment.Center, }; @@ -579,7 +589,7 @@ X = Application.GetRealWidth(249), Width = Application.GetRealWidth(38), Height = Application.GetRealWidth(38), - UnSelectedImagePath = $"FunctionIcon/Acst/{imageFolder}/SceneSleepIcon2.png", + UnSelectedImagePath = "FunctionIcon/Acst/grey/SceneSleepIcon2.png", SelectedImagePath = $"FunctionIcon/Acst/{imageFolder}/SceneSleepIcon2.png", TextAlignment = TextAlignment.Center, }; -- Gitblit v1.8.0