From 02498f7744e6fdc413e518f96b25f3635540dc6b Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 15 十一月 2022 11:27:38 +0800
Subject: [PATCH] 金茂科技系统更新

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |   80 +++++++++++++--------------------------
 1 files changed, 27 insertions(+), 53 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index d89790d..064bc66 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
                     {
@@ -929,7 +903,7 @@
                 };
 
 
-                if (function.spk == SPK.SenesorMegahealth)
+                if (function.spk == SPK.SenesorMegahealth || function.spk == SPK.SensorMmvPose)
                 {
                     btnIcon.UnSelectedImagePath = "FunctionIcon/Icon/HomeIcon/sensormegahealth.png";
                     btnIcon.SelectedImagePath = "FunctionIcon/Icon/HomeIcon/sensormegahealth.png";
@@ -1142,7 +1116,7 @@
 
                 }
                 
-                else if (function.spk == SPK.SenesorMegahealth)
+                else if (function.spk == SPK.SenesorMegahealth || function.spk == SPK.SensorMmvPose)
                 {
                     //btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}.png";
                     //btnIcon.SelectedImagePath = "FunctionIcon/Icon/HomeIcon/sensormegahealth.png";
@@ -1283,31 +1257,31 @@
             };
 
 
-            Button btnAcstPower = new Button()
-            {
-                X = Application.GetRealWidth(115),
-                Y = Application.GetRealHeight(70),
-                Width = Application.GetRealWidth(32),
-                Height = Application.GetRealWidth(32),
-                SelectedImagePath = "Public/PowerOpen.png",
-                UnSelectedImagePath = "Public/PowerClose.png",
-                IsSelected = function.trait_on_off.curValue.ToString() == "on",
-            };
-            view.AddChidren(btnAcstPower);
-            btnAcstPower.MouseUpEventHandler = (sender, e) => {
-                btnAcstPower.IsSelected = !btnAcstPower.IsSelected;
-                new System.Threading.Thread(() =>
-                {
-                    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();
-            };
+            //Button btnAcstPower = new Button()
+            //{
+            //    X = Application.GetRealWidth(115),
+            //    Y = Application.GetRealHeight(70),
+            //    Width = Application.GetRealWidth(32),
+            //    Height = Application.GetRealWidth(32),
+            //    SelectedImagePath = "Public/PowerOpen.png",
+            //    UnSelectedImagePath = "Public/PowerClose.png",
+            //    IsSelected = function.trait_on_off.curValue.ToString() == "on",
+            //};
+            //view.AddChidren(btnAcstPower);
+            //btnAcstPower.MouseUpEventHandler = (sender, e) => {
+            //    btnAcstPower.IsSelected = !btnAcstPower.IsSelected;
+            //    new System.Threading.Thread(() =>
+            //    {
+            //        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