| | |
| | | }; |
| | | rowLayout.AddChidren(line2); |
| | | |
| | | if (curIndex == curRoom.SceneUIList.Count - 1) |
| | | if (curIndex == curRoom.DeviceUIList.Count - 1) |
| | | { |
| | | line2.Visible = false; |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | 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; |
| | | devicePic.MouseUpEventHandler += hander; |