| | |
| | | |
| | | |
| | | private FrameLayout itemView=new FrameLayout(); |
| | | |
| | | /// <summary> |
| | | /// floorBtn |
| | | /// </summary> |
| | | private Button floorBtn; |
| | | #endregion |
| | | |
| | | #region ◆ 接口____________________________ |
| | |
| | | }; |
| | | topFrameLayout.AddChidren(floor); |
| | | |
| | | var floorBtn = new Button |
| | | floorBtn = new Button |
| | | { |
| | | X=floor.Right, |
| | | Width=Application.GetRealWidth(500), |
| | |
| | | } |
| | | AddChidren(residecneName); |
| | | |
| | | EventHandler<MouseEventArgs> selectFloor = (send, e) => |
| | | { |
| | | var floorFL = new Phone.Device.Category.SelectFloor(); |
| | | AddChidren(floorFL); |
| | | floorFL.Init(35,153); |
| | | floorFL.FloorAction = (floorName) => |
| | | { |
| | | floorBtn.Text = floorName; |
| | | }; |
| | | }; |
| | | floor.MouseUpEventHandler += selectFloor; |
| | | floorBtn.MouseUpEventHandler += selectFloor; |
| | | floor.MouseUpEventHandler += SelectFloor; |
| | | floorBtn.MouseUpEventHandler += SelectFloor; |
| | | //切换住宅 |
| | | residecneName.MouseLongEventHandler += (send, e) => |
| | | { |
| | |
| | | { |
| | | //Room.CurrentRoom = Room.CurrentRoom == null ? Room.Lists[0] : Room.CurrentRoom; |
| | | Room.CurrentRoom = Room.Lists[0]; |
| | | foreach (var room in Room.Lists) |
| | | foreach (var room in Room.CurrentRoom.GetRoomsByCurrentFloorIdAppendLoveRoom()) |
| | | { |
| | | var roomBackView = new FrameLayout() |
| | | { |
| | |
| | | //{ |
| | | // Show(); |
| | | //}; |
| | | |
| | | if(room.IsLove) |
| | | { |
| | | return; |
| | | } |
| | | var editRoom = new Device.Room.EditRoom(); |
| | | HomePage.Instance.AddChidren(editRoom); |
| | | HomePage.Instance.PageIndex += 1; |
| | |
| | | #endregion |
| | | |
| | | #region ◆ 刷新____________________________ |
| | | |
| | | /// <summary> |
| | | /// RefreshBodyView |
| | | /// </summary> |
| | | public void RefreshBodyView() |
| | | { |
| | | if (Room.CanInitAllRoom == false) |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// SelectFloor |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="mouseEventArgs"></param> |
| | | public void SelectFloor(object sender,MouseEventArgs mouseEventArgs) |
| | | { |
| | | var floorFL = new Phone.Device.Category.SelectFloor(); |
| | | AddChidren(floorFL); |
| | | floorFL.Init(35, 153); |
| | | floorFL.FloorAction = (floorName) => |
| | | { |
| | | floorBtn.Text = floorName; |
| | | Show(); |
| | | }; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region ◆ 检测是否绑定了网关________________ |