From 71c7ad13169695913282962a460858e13b6c0969 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 29 十二月 2020 14:33:49 +0800 Subject: [PATCH] 2020-12-29-1 --- ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs b/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs index aaa1c90..f3678c3 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs @@ -87,7 +87,7 @@ //淇濆瓨鐐瑰嚮浜嬩欢 saveView.clickviewBtn.MouseUpEventHandler += (sender, e) => { - if (selectedDeviceStatus != ""&& TaskList.Count!=0) + if (TaskList.Count!=0) { LogicIfon.AddDeviceActions(common, actionsInfo); } @@ -95,7 +95,7 @@ { if (!edit) { - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + var alert = new UserCenter.ShowMsgControl(ShowMsgType.Normal, Language.StringByID(MyInternationalizationString.selectdevicestatuscondition), Language.StringByID(MyInternationalizationString.confrim)); alert.Show(); @@ -328,23 +328,23 @@ { Y = Application.GetRealHeight(140 + 160), X = Application.GetRealWidth(78), - Height = Application.GetRealHeight(12), + Height = Application.GetRealWidth(12), Width = Application.GetRealWidth(918 - 120), 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 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(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(UserCenter.ShowMsgType.Normal, + var alert = new UserCenter.ShowMsgControl(ShowMsgType.Normal, Language.StringByID(MyInternationalizationString.selectdevicestatuscondition), Language.StringByID(MyInternationalizationString.confrim)); alert.Show(); -- Gitblit v1.8.0