| | |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | sceneView.sceneTargetDevice = targetDevice; |
| | | sceneView.sceneUI = targetDevice.SceneUI; |
| | | sceneView.currentSceneUI = modifySceneUI; |
| | | sceneView.Show(); |
| | | sceneView.selectedAction = (selectedScene) => |
| | | { |
| | |
| | | }; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | if (sceneTargetDevicesList.Count > 2) |
| | | { |
| | | var targetRowLayout = new RowLayout() |
| | | { |
| | | Height = Application.GetRealHeight(300), |
| | | LineColor = ZigbeeColor.Current.GXCBackgroundColor, |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | TargetListScrolView.AddChidren(targetRowLayout); |
| | | } |
| | | } |
| | | } |
| | |
| | | EventHandler<MouseEventArgs> targetAddHander = (sender, e) => |
| | | { |
| | | |
| | | if (curRoom == null) |
| | | //if (curRoom == null) |
| | | //{ |
| | | // RoomCommon.ShowTipNoRoom(); |
| | | // return; |
| | | //} |
| | | if(curRoom != null) |
| | | { |
| | | RoomCommon.ShowTipNoRoom(); |
| | | return; |
| | | } |
| | | if (curRoom.IsSharedRoom) |
| | | { |
| | | RoomCommon.ShowTipRoomIsShared(); |
| | | return; |
| | | if (curRoom.IsSharedRoom) |
| | | { |
| | | RoomCommon.ShowTipRoomIsShared(); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | int selectRow_Height = 150; |
| | |
| | | UserView.HomePage.Instance.AddChidren(sceneView); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | sceneView.beforeSceneTargetDeviceUIs = sceneTargetDevicesList; |
| | | sceneView.currentSceneUI = modifySceneUI; |
| | | sceneView.Show(); |
| | | sceneView.selectedAction = (selectedScene) => |
| | | { |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | }; |
| | | #endregion |