wxr
2023-08-09 a7debf97f52b5f473c3316ecd06bf48f44b65406
HDL_ON/UI/UI2/FuntionControlView/Light/RGBPageBLL.cs
@@ -58,6 +58,20 @@
                        {
                            bodyView.btnCurColor.BorderColor = 0x00000000;
                        }
                        try
                        {
                            var colorfulState = updateTemp.GetAttribute(FunctionAttributeKey.Colorful);
                            if (colorfulState != null)
                            {
                                if(bodyView.btnColorfulSwitch!= null)
                                {
                                    bodyView.btnColorfulSwitch.IsSelected = colorfulState.curValue.ToString() == "on";
                                }
                            }
                        }catch(Exception ex)
                        {
                            MainPage.Log($"更新RGB 炫彩开关状态异常:{ex.Message}");
                        }
                    }
                }
                catch (Exception ex)
@@ -88,7 +102,7 @@
        /// </summary>
        void LoadColorChangeEvent()
        {
            if (!function.online)
            if (!function.isOnline())
            {
                new Tip()
                {
@@ -200,7 +214,7 @@
            dimmerBar.OnStopTrackingTouchEvent = (sender, e) =>
            {
                if (!function.online)
                if (!function.isOnline())
                {
                    new Tip()
                    {
@@ -217,7 +231,7 @@
                Control.Ins.SendWriteCommand(function, d);
            };
            if (function.online)
            if (function.isOnline())
            {
                dimmerBar.OnStartTrackingTouchEvent = (sender, e) =>
                {
@@ -321,7 +335,7 @@
        {
            btnRestoredPoint.MouseUpEventHandler = (sender, e) =>
            {
                if (!function.online)
                if (!function.isOnline())
                {
                    return;
                }