wxr
2020-03-05 0bdc0a135dbe31761b53f432ed34f347f0a4e36b
HDL_ON/UI/UI2/FuntionControlView/Light/RelayPageBLL.cs
File was renamed from HDL_ON/UI/UI2/FuntionControlView/Light/RelayFragmentBLL.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();
            };