From b3c9ada9a3e758c9f67abb9fc0a6a2764c7ea03d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 13 十月 2022 11:19:07 +0800
Subject: [PATCH] 光伏更新主页图标
---
HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 43 ++++++++++---------------------------------
1 files changed, 10 insertions(+), 33 deletions(-)
diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 4ab1481..a6a5bd7 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -659,36 +659,10 @@
var list = FunctionList.List.GetDeviceFunctionList();
foreach (var function in list)
{
-
-
//闊充箰妯″潡鏈変富浠庡叧绯伙紝闇�瑕佺壒娈婂鐞�
if (SPK.MusicSpkList().Contains( function.spk))
{
continue;
- //var music = function as Music.A31MusicModel;
- //var music = Music.A31MusicModel.A31MusicModelList.Find((obj) => obj.sid == function.sid);
- //if (music == null)
- //{
- // continue;
- //}
- //if (music.ServerClientType == -1)
- //{
- // continue;
- //}
- //else if (music.ServerClientType == 1)
- //{
- // if (!music.MainPlayCollection)
- // {
- // continue;
- // }
- //}
- //else
- //{
- // if (!music.collect)
- // {
- // continue;
- // }
- //}
}
else
{
@@ -1296,14 +1270,17 @@
view.AddChidren(btnAcstPower);
btnAcstPower.MouseUpEventHandler = (sender, e) => {
btnAcstPower.IsSelected = !btnAcstPower.IsSelected;
- string onoff = btnAcstPower.IsSelected ? "on" : "off";
- Dictionary<string, string> d = new Dictionary<string, string>();
- d.Add(FunctionAttributeKey.OnOff, onoff);
- foreach(var temp in FunctionList.List.GetAcstParentList())
+ new System.Threading.Thread(() =>
{
- Control.Ins.SendWriteCommand(temp, d);
- }
-
+ string onoff = btnAcstPower.IsSelected ? "on" : "off";
+ Dictionary<string, string> d = new Dictionary<string, string>();
+ d.Add(FunctionAttributeKey.OnOff, onoff);
+ foreach (var temp in FunctionList.List.GetAcstParentList())
+ {
+ Control.Ins.SendWriteCommand(temp, d);
+ }
+ })
+ { IsBackground = true }.Start();
};
--
Gitblit v1.8.0