From 07b0239f824ddb5a0cadf93f20ff6247f72baca2 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 19 一月 2022 11:32:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wxr0114' into wjc

---
 HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPageBLL.cs |   85 ------------------------------------------
 1 files changed, 0 insertions(+), 85 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPageBLL.cs
index 300b194..1e434f4 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/SocketPageBLL.cs
@@ -5,89 +5,4 @@
 
 namespace HDL_ON.UI
 {
-    public partial class SocketPage
-    {
-        /// <summary>
-        /// 鏇存柊鐏厜鐘舵��
-        /// </summary>
-        public static void UpdataState(Function uFan)
-        {
-            Application.RunOnMainThread(() =>
-            {
-                try
-                {
-                    if (bodyView == null)
-                        return;
-                    bodyView.btnSwitch.IsSelected = bodyView.btnSwitchIcon.IsSelected = uFan.trait_on_off.curValue.ToString() == "on";
-                }
-                catch (Exception ex)
-                {
-                    MainPage.Log($"RelayPage error {ex.Message}");
-                }
-            });
-        }
-        /// <summary>
-        /// 鍔犺浇浜嬩欢鍒楄〃
-        /// </summary>
-        void LoadEventList()
-        {
-            LoadSwitchEvent();
-            LoadCollectionEvent();
-
-            //鍥為��鍒锋柊淇℃伅浜嬩欢
-            actionRefresh = () => {
-                btnFunctionName.Text = btnFunctionName_Out.Text = function.name;
-                btnFromFloor_Out.Text = btnFromFoorAndRoom.Text = function.GetRoomListName();
-                function.UpdataFuncitonInfo();
-            };
-        }
-
-        /// <summary>
-        /// 鏀惰棌鍔熻兘鎸夐挳浜嬩欢
-        /// </summary>
-        void LoadCollectionEvent()
-        {
-            btnCollection.MouseUpEventHandler += (sender, e) => {
-                btnCollection.IsSelected = function.collect = btnCollection_Out.IsSelected = !btnCollection.IsSelected;
-                function.CollectFunction();
-            };
-        }
-
-        /// <summary>
-        /// 鍔犺浇寮�鍏充簨浠�
-        /// </summary>
-        void LoadSwitchEvent()
-        {
-            btnSwitchIcon.MouseUpEventHandler += (sender, e) =>
-            {
-                btnSwitchIcon.IsSelected = btnSwitch.IsSelected = !btnSwitchIcon.IsSelected;
-
-                new System.Threading.Thread(() =>
-                {
-                    function.trait_on_off.curValue = btnSwitch.IsSelected ? "on" : "off";
-                    //Control.Send(CommandType_A.write, this.function);
-                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                    d.Add("on_off", function.trait_on_off.curValue.ToString());
-                    Control.Ins.SendWriteCommand(function, d);
-                })
-                { IsBackground = true }.Start();
-            };
-            btnSwitch.MouseUpEventHandler += (sender, e) =>
-            {
-                btnSwitch.IsSelected = btnSwitchIcon.IsSelected = !btnSwitch.IsSelected;
-
-                new System.Threading.Thread(() =>
-                {
-                    function.trait_on_off.curValue = btnSwitch.IsSelected ? "on" : "off";
-                    //Control.Send(CommandType_A.write, this.function);
-                    System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                    d.Add("on_off", function.trait_on_off.curValue.ToString());
-                    Control.Ins.SendWriteCommand(function, d);
-                })
-                { IsBackground = true }.Start();
-            };
-
-        }
-
     }
-}

--
Gitblit v1.8.0