黄学彪
2020-04-02 9904031f5291daaf56985146bb671f25e18ebbdf
ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs
@@ -82,7 +82,7 @@
            this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 613, 1175);
            //房间图片底部阴影
            var btnShadow = new PicViewControl(994, 588);
            var btnShadow = new PicViewControl(853, 593);
            btnShadow.Y = Application.GetRealHeight(58);
            btnShadow.Gravity = Gravity.CenterHorizontal;
            btnShadow.UnSelectedImagePath = "Room/RoomShadow.png";
@@ -90,8 +90,8 @@
            //房间图片
            var btnPic = new ImageView();
            btnPic.Y = Application.GetRealHeight(60);
            btnPic.Width = Application.GetMinRealAverage(965);
            btnPic.Height = Application.GetMinRealAverage(544);
            btnPic.Width = Application.GetMinRealAverage(824);
            btnPic.Height = Application.GetMinRealAverage(549);
            btnPic.Radius = (uint)Application.GetRealHeight(17);
            btnPic.Gravity = Gravity.CenterHorizontal;
            if (this.editorRoom.BackgroundImageType == 0)
@@ -111,15 +111,14 @@
            btnZhezhao.Gravity = Gravity.CenterHorizontal;
            btnZhezhao.Radius = btnPic.Radius;
            bodyFrameLayout.AddChidren(btnZhezhao);
            //分享的房间不能修改
            if (this.editorRoom.IsSharedRoom == false)
            btnZhezhao.MouseUpEventHandler += (sender, e) =>
            {
                btnZhezhao.MouseUpEventHandler += (sender, e) =>
                {
                    //房间图片选择
                    this.RoomPictrueSelect(btnPic);
                };
            }
                //房间图片选择
                this.RoomPictrueSelect(btnPic);
            };
            //变更一下那个白色背景的Y轴,它到图片的中间位置
            frameBack1.Y = btnPic.Y + btnPic.Height / 2;
            //添加全部菜单
            this.AddAllMenuRow(tableContr, btnPic);
@@ -215,12 +214,6 @@
            //初始化桌布完成
            tableContr.FinishInitControl(bodyFrameLayout, this.listview);
            tableContr = null;
            //分享的房间不能修改
            if (this.editorRoom.IsSharedRoom == true)
            {
                return;
            }
            //保存
            var btnFinish = new BottomClickButton();
@@ -577,7 +570,7 @@
                    this.cloneRoom.BackgroundImageType = 1;
                    imageContr.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath);
                    System.IO.File.Delete(imagePath);
                }, "HdlPic", 16, 9);
                }, "HdlPic", 2, 1);
            });
            //我的相册
            menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.MyAblums), () =>
@@ -594,7 +587,7 @@
                    imageContr.ImageBytes = Shared.IO.FileUtils.ReadFile(imagePath);
                    System.IO.File.Delete(imagePath);
                }, "HdlPic", 16, 9);
                }, "HdlPic", 2, 1);
            });
        }