From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 17 十二月 2020 09:07:13 +0800 Subject: [PATCH] 新云端Ver1.3 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs index 9e85870..95e534d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelSimpleMutilfunctionAddTargetsForm.cs @@ -142,7 +142,7 @@ //澶囨敞寮圭獥鎻愮ず string msg = Language.StringByID(R.MyInternationalizationString.BindRemarkTip1).Replace("{0}", "\r\n"); - var alert = new Shared.Phone.UserCenter.ShowMsgControl(ShowMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.Iknown)); + var alert = new Shared.Phone.ShowMsgControl(ShowMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.Iknown)); alert.Show(); } @@ -240,8 +240,8 @@ btnFinifh = new Button() { - Width = Application.GetRealWidth(907), - Height = Application.GetRealHeight(127), + Width = Application.GetRealWidth(907), + Height = Application.GetRealHeight(127), Y = Application.GetRealHeight(49 + 35), Gravity = Gravity.CenterHorizontal, Radius = (uint)Application.GetRealHeight(127) / 2, @@ -510,7 +510,7 @@ X = devicePic.Right + Application.GetRealWidth(20), TextAlignment = TextAlignment.CenterLeft, TextSize = 15, - Text = Common.LocalDevice.Current.GetDeviceEpointName(device), + Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device), }; rowLayout.AddChidren(btnBindName); @@ -539,13 +539,13 @@ { line2.Visible = false; } - if (Common.LocalDevice.Current.CheckDeviceIsOnline(device) == true) - { - btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.TextBlack; - } - else - { - btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.XMGray3; + if (HdlDeviceCommonLogic.Current.CheckDeviceIsOnline(device) == true) + { + btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.TextBlack; + } + else + { + btnBindName.TextColor = Shared.Common.ZigbeeColor.Current.XMGray3; } switch (curBindType) { @@ -606,7 +606,7 @@ EventHandler<MouseEventArgs> hander = (sender, e) => { //鐩爣澶囨敞澶勭悊 - var localName = System.Text.Encoding.UTF8.GetBytes(Common.LocalDevice.Current.GetDeviceEpointName(device)); + var localName = System.Text.Encoding.UTF8.GetBytes(HdlDeviceCommonLogic.Current.GetDeviceEpointName(device)); if (localName.Length > 20) { new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindRemarkTip2), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); @@ -1132,7 +1132,7 @@ break; case 3: addSingleBindData.BindClusterList.Add(6); - var device = LocalDevice.Current.GetDevice(de.DeviceAddr, de.DeviceEpoint); + var device = HdlDeviceCommonLogic.Current.GetDevice(de.DeviceAddr, de.DeviceEpoint); if (device != null) { if (device.Type == DeviceType.DimmableLight) -- Gitblit v1.8.0