From 99253403b560f761d5f9af8b4f5140496996433a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 20 十一月 2020 16:49:50 +0800 Subject: [PATCH] 新云端的代码Ver1.0 --- 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 a2bcb2a..556f4e2 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/Nightlight.cs +++ b/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(); -- Gitblit v1.8.0