From b3e96fce4cc01113128ddf8e0a18fc19594a9e56 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 05 十二月 2019 18:38:30 +0800 Subject: [PATCH] 一个新的版本 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs index e47fed7..3fed027 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddDevicePage.cs @@ -15,10 +15,10 @@ /// </summary> /// <param name="common">Common.</param> public void Changed(CommonDevice common) - { + { Shared.Application.RunOnMainThread(() => { - }); + }); } /// 鏋勯�犲嚱鏁� @@ -573,7 +573,7 @@ }; rowLayout.AddChidren(line2); - if (curIndex == curRoom.SceneUIList.Count - 1) + if (curIndex == curRoom.DeviceUIList.Count - 1) { line2.Visible = false; } @@ -591,9 +591,16 @@ } else { - targetList.Add(device.CommonDevice); - btnChoose.IsSelected = true; - btnChoose.Visible = true; + if (targetList.Count > 9) + { + new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.BindFull), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance); + } + else + { + targetList.Add(device.CommonDevice); + btnChoose.IsSelected = true; + btnChoose.Visible = true; + } } }; rowLayout.MouseUpEventHandler += hander; -- Gitblit v1.8.0