From 0bdc0a135dbe31761b53f432ed34f347f0a4e36b Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 05 三月 2020 10:49:41 +0800
Subject: [PATCH] 20200304

---
 HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/RelayFragmentBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
similarity index 80%
rename from HDL_ON/UI/UI2/FuntionControlView/Light/RelayFragmentBLL.cs
rename to HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
index 8d35064..769d4f9 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/RelayFragmentBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
@@ -3,7 +3,7 @@
 
 namespace HDL_ON.UI
 {
-    public partial class RelayFragment
+    public partial class RelayPage
     {
         /// <summary>
         /// 鍔犺浇浜嬩欢鍒楄〃
@@ -20,7 +20,7 @@
         void LoadCollectionEvent()
         {
             btnCollection.MouseUpEventHandler += (sender, e) => {
-                btnCollection.IsSelected = function.collection = !btnCollection.IsSelected;
+                btnCollection.IsSelected = light.collection = !btnCollection.IsSelected;
                 DB_ResidenceData.residenceData.SaveResidenceData();
             };
         }
@@ -36,9 +36,9 @@
 
                 new System.Threading.Thread(() =>
                 {
-                    var light = function as Light;
+                    var light = this.light as Light;
                     light.state = btnSwitch.IsSelected ? 1 : 0;
-                    Control.Send("write", function, 3);
+                    Control.Send("write", this.light, 3);
                 })
                 { IsBackground = true }.Start();
             };
@@ -48,9 +48,9 @@
 
                 new System.Threading.Thread(() =>
                 {
-                    var light = function as Light;
+                    var light = this.light as Light;
                     light.state = btnSwitch.IsSelected ? 1 : 0;
-                    Control.Send("write", function, 3);
+                    Control.Send("write", this.light, 3);
                 })
                 { IsBackground = true }.Start();
             };

--
Gitblit v1.8.0