| | |
| | | //初始化左滑菜单
|
| | | roomManagement = new ListRoomViewFrom();
|
| | | CommonPage.Instance.AddLeftView(roomManagement);
|
| | | roomManagement.ShowForm();
|
| | | } |
| | | return roomManagement; |
| | | } |
| | |
| | | /// 是否可以触发点击事件--是否可以跳转主页房间 |
| | | /// </summary> |
| | | public bool CanClick = true;
|
| | | /// <summary>
|
| | | /// 是否初始化完成
|
| | | /// </summary>
|
| | | private bool isInitFinish = false;
|
| | | /// <summary> |
| | | /// 当前楼层id |
| | | /// </summary> |
| | |
| | | /// 画面显示 |
| | | /// </summary> |
| | | public void ShowForm() |
| | | { |
| | | roomManagement = this;
|
| | | {
|
| | | //初始化头部信息 |
| | | this.InitTopFrame(); |
| | | //初始化中部控件 |
| | |
| | | };
|
| | |
|
| | | //获取楼层
|
| | | if (this.curFloorId == string.Empty)
|
| | | {
|
| | | this.curFloorId = Config.Instance.Home.CurrentFloorId;
|
| | | }
|
| | | this.curFloorId = Config.Instance.Home.CurrentFloorId;
|
| | |
|
| | | var dicFloor = HdlRoomLogic.Current.GetFloorSortList();
|
| | | if (dicFloor.Count == 0)
|
| | | {
|
| | |
| | | {
|
| | | this.curFloorId = floorId;
|
| | | btnFloor.Text = dicFloor[floorId];
|
| | | //刷新房间列表
|
| | | this.RefreshListRoom();
|
| | | //刷新Body容器
|
| | | this.RefreshBodyFrame();
|
| | | };
|
| | | };
|
| | | } |
| | |
| | | listView.Height = bodyFrameLayout.Height; |
| | | listView.Width = bodyFrameLayout.Width; |
| | | bodyFrameLayout.AddChidren(listView); |
| | | //刷新房间列表 |
| | | this.RefreshListRoom(); |
| | | //刷新Body容器
|
| | | this.RefreshBodyFrame(); |
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary>
|
| | | public void RefreshListRoom()
|
| | | {
|
| | | //如果还没有初始化完成界面的话
|
| | | if (this.isInitFinish == false)
|
| | | {
|
| | | this.ShowForm();
|
| | | this.isInitFinish = true;
|
| | | return;
|
| | | }
|
| | | //把头部也一起初始化了
|
| | | this.topFrameLayout.RemoveAll();
|
| | | //初始化头部信息
|
| | | this.InitTopFrame();
|
| | |
|
| | | //刷新Body容器
|
| | | this.RefreshBodyFrame();
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 刷新Body容器
|
| | | /// </summary>
|
| | | private void RefreshBodyFrame()
|
| | | {
|
| | | //先清空
|
| | | this.listView.frameTable.RemoveAll();
|
| | | this.listView.frameTable.Height = Application.GetRealHeight(100);
|