黄学彪
2020-11-20 99253403b560f761d5f9af8b4f5140496996433a
ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs
@@ -22,7 +22,7 @@
            this.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor;
            TopView view = new TopView();
            this.AddChidren(view.TopRowView());
            view.toptitleNameBtn.Text = LocalDevice.Current.GetDeviceEpointName(common);
            view.toptitleNameBtn.Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(common);
            view.clickBtn.MouseDownEventHandler += (sender, e) =>
            {
                RemoveFromParent();
@@ -95,7 +95,7 @@
                {
                    if (!edit)
                    {
                        var alert = new UserCenter.ShowMsgControl(ShowMsgType.Normal,
                        var alert = new ShowMsgControl(ShowMsgType.Normal,
                                    Language.StringByID(MyInternationalizationString.selectdevicestatuscondition),
                                   Language.StringByID(MyInternationalizationString.confrim));
                        alert.Show();
@@ -203,7 +203,7 @@
            UserView.HomePage.Instance.ScrollEnabled = false;//不让当前界面滑动
            CompleteView completeView = new CompleteView();
            flMain.AddChidren(completeView.Show(2));
            completeView.Btntitle.Text = LocalDevice.Current.GetDeviceEpointName(common);
            completeView.Btntitle.Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(common);
            EventHandler<MouseEventArgs> clickcancel = (sender, e) =>
            {
                UserView.HomePage.Instance.ScrollEnabled = true;
@@ -333,18 +333,18 @@
                            UnSelectedImagePath = "ZigeeLogic/seek.png",
                            Gravity = Gravity.CenterHorizontal
                        };
                        completeView.Show(2).AddChidren(seekIconBtn);
                        var horizontalSeekBarVol = new UserCenter.SeekBarControl(918)
                        {
                            ProgressBarColor = 0x00000000,// ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色
                            SeekBarBackgroundColor = 0x00000000,
                            SeekBarViewHeight = Application.GetRealHeight(20),
                            SeekBarPadding = Application.GetRealWidth(60),
                            MinValue = 30,
                            MaxValue = 60,
                            ProgressChangeDelayTime = 0,
                        };
                        completeView.Show(2).AddChidren(seekIconBtn);
                        var horizontalSeekBarVol = new SeekBarControl(918)
                        {
                            ProgressBarColor = 0x00000000,// ZigbeeColor.Current.LogicProgressColorSelected,//选中进度条颜色
                            SeekBarBackgroundColor = 0x00000000,
                            SeekBarViewHeight = Application.GetRealHeight(20),
                            SeekBarPadding = Application.GetRealWidth(60),
                            MinValue = 30,
                            MaxValue = 60,
                            ProgressChangeDelayTime = 0,
                        };
                        completeView.Show(2).AddChidren(horizontalSeekBarVol);
                        horizontalSeekBarVol.Y = seekIconBtn.Y - (horizontalSeekBarVol.Height - seekIconBtn.Height) / 2;
                        horizontalSeekBarVol.ShowCustomTextView(Application.GetRealWidth(200), 12, ZigbeeColor.Current.LogicBtnCancelColor);
@@ -367,15 +367,15 @@
                                {
                                    var intvalue = int.Parse(value["Data1"]);
                                    var lightbrightnessvalue = 1000000 / (intvalue * 100);
                                    horizontalSeekBarVol.Progress = lightbrightnessvalue;
                                    horizontalSeekBarVol.Progress = lightbrightnessvalue;
                                    break;
                                }
                            }
                        }
                        var intValue = horizontalSeekBarVol.Progress;
                        if (intValue == 0) { intValue = 30; }
                        }
                        var intValue = horizontalSeekBarVol.Progress;
                        if (intValue == 0) { intValue = 30; }
                        horizontalSeekBarVol.SetCustomText(intValue * 100 + "K");
                    }
                    break;
@@ -456,7 +456,7 @@
                {
                    if (!edit)
                    {
                        var alert = new UserCenter.ShowMsgControl(ShowMsgType.Normal,
                        var alert = new ShowMsgControl(ShowMsgType.Normal,
                                    Language.StringByID(MyInternationalizationString.selectdevicestatuscondition),
                                   Language.StringByID(MyInternationalizationString.confrim));
                        alert.Show();