| | |
| | | //设置头部信息
|
| | | base.SetTitleText(Common.Config.Instance.Home.FloorDics[i_floor]);
|
| | |
|
| | | var btnIcon = new MostRightIconControl(69, 69);
|
| | | btnIcon.UnSelectedImagePath = "Item/Add.png";
|
| | | topFrameLayout.AddChidren(btnIcon);
|
| | | btnIcon.InitControl();
|
| | | btnIcon.ButtonClickEvent += ((sender, e) =>
|
| | | //主人或者管理员才会出现这个菜单
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1 || UserCenterResourse.UserInfo.AuthorityNo == 2)
|
| | | {
|
| | | var form = new AddNewRoomForm();
|
| | | form.AddForm(i_floor);
|
| | | });
|
| | | var btnIcon = new MostRightIconControl(69, 69);
|
| | | btnIcon.UnSelectedImagePath = "Item/Add.png";
|
| | | topFrameLayout.AddChidren(btnIcon);
|
| | | btnIcon.InitControl();
|
| | | btnIcon.ButtonClickEvent += ((sender, e) =>
|
| | | {
|
| | | var form = new AddNewRoomForm();
|
| | | form.AddForm(i_floor);
|
| | | });
|
| | | }
|
| | |
|
| | | //初始化中部信息
|
| | | this.InitMiddleFrame();
|
| | |
| | | listView.AddChidren(frameRow);
|
| | | //图标
|
| | | var btnIcon = frameRow.frameTable.AddLeftIcon(81);
|
| | | btnIcon.UnSelectedImagePath = "Item/RoomIcon.png";
|
| | | btnIcon.UnSelectedImagePath = "Item/RoomIconSelected.png";
|
| | | //名称
|
| | | var btnName = frameRow.frameTable.AddLeftCaption(room.Name, 600);
|
| | | btnName.TextSize = 15;
|