| | |
| | | btnZhezhao.Gravity = Gravity.CenterHorizontal;
|
| | | btnZhezhao.Radius = btnPic.Radius;
|
| | | bodyFrameLayout.AddChidren(btnZhezhao);
|
| | | btnZhezhao.MouseUpEventHandler += (sender, e) =>
|
| | | //分享的房间不能编辑
|
| | | if (this.editorRoom.IsSharedRoom == false)
|
| | | {
|
| | | //房间图片选择
|
| | | this.RoomPictrueSelect(btnPic);
|
| | | };
|
| | | btnZhezhao.MouseUpEventHandler += (sender, e) =>
|
| | | {
|
| | | //房间图片选择
|
| | | this.RoomPictrueSelect(btnPic);
|
| | | };
|
| | | }
|
| | |
|
| | | //变更一下那个白色背景的Y轴,它到图片的中间位置
|
| | | frameBack1.Y = btnPic.Y + btnPic.Height / 2;
|
| | |
| | | private void AddAllMenuRow(InformationEditorControl tableContr, ImageView btnPic)
|
| | | {
|
| | | //【房间名称】
|
| | | var txtRoomName = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uRoomName), this.cloneRoom.Name, this.listview.rowSpace / 2);
|
| | | txtRoomName.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputRoomName);
|
| | | listview.AddChidren(txtRoomName);
|
| | | txtRoomName.InitControl();
|
| | | //底线
|
| | | txtRoomName.AddBottomLine();
|
| | | FrameCaptionInputControl txtRoomName = null;
|
| | | if (this.editorRoom.IsLove == false)
|
| | | {
|
| | | txtRoomName = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uRoomName), this.cloneRoom.Name, this.listview.rowSpace / 2);
|
| | | txtRoomName.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputRoomName);
|
| | | listview.AddChidren(txtRoomName);
|
| | | txtRoomName.InitControl();
|
| | | //底线
|
| | | txtRoomName.AddBottomLine();
|
| | | }
|
| | | else
|
| | | {
|
| | | //我的喜爱不能编辑名字
|
| | | var rowRoomName = new FrameCaptionViewControl(Language.StringByID(R.MyInternationalizationString.uRoomName), this.cloneRoom.Name, this.listview.rowSpace / 2);
|
| | | listview.AddChidren(rowRoomName);
|
| | | rowRoomName.UseClickStatu = false;
|
| | | rowRoomName.InitControl();
|
| | | //底线
|
| | | rowRoomName.AddBottomLine();
|
| | | }
|
| | |
|
| | | //该APP为有楼层的模式才开启这个菜单
|
| | | if (string.IsNullOrEmpty(this.cloneRoom.FloorId) == false)
|
| | | if (this.editorRoom.IsLove == false && string.IsNullOrEmpty(this.cloneRoom.FloorId) == false)
|
| | | {
|
| | | //【所属楼层】
|
| | | var btnBelone = new FrameCaptionViewControl(Language.StringByID(R.MyInternationalizationString.uBelongeFloor), Common.Config.Instance.Home.FloorDics[this.cloneRoom.FloorId], this.listview.rowSpace / 2);
|
| | | listview.AddChidren(btnBelone);
|
| | | btnBelone.InitControl();
|
| | | //右箭头
|
| | | btnBelone.AddRightArrow();
|
| | | //底线
|
| | | btnBelone.AddBottomLine();
|
| | | //分享的房间不能修改
|
| | | if (this.editorRoom.IsSharedRoom == false)
|
| | | {
|
| | | //右箭头
|
| | | btnBelone.AddRightArrow();
|
| | | btnBelone.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //楼层选择
|
| | |
| | | tableContr.FinishInitControl(bodyFrameLayout, this.listview);
|
| | | tableContr = null;
|
| | |
|
| | | //分享的房间不能保存
|
| | | if (this.editorRoom.IsSharedRoom == true)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | //保存
|
| | | var btnFinish = new BottomClickButton();
|
| | | btnFinish.TextID = R.MyInternationalizationString.uSave;
|
| | | bodyFrameLayout.AddChidren(btnFinish);
|
| | | btnFinish.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.cloneRoom.Name = txtRoomName.Text;
|
| | | if (txtRoomName != null)
|
| | | {
|
| | | this.cloneRoom.Name = txtRoomName.Text;
|
| | | }
|
| | | //检测能否保存房间
|
| | | if (this.CheckCanSaveRoom() == false)
|
| | | {
|