黄学彪
2019-11-25 5727cf0b9b54da0a191dd1e23cb5abf21320fbff
ZigbeeApp/Shared/Phone/UserCenter/SharedContent/AddNewSharedContentForm.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using ZigBee.Device;
namespace Shared.Phone.UserCenter.SharedContent
@@ -58,6 +57,7 @@
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
        /// </summary>
        /// <param name="i_room">查看的房间对象</param>
        /// <param name="i_memberShardInfo">成员的分享数据</param>
        public void ShowForm(Common.Room i_room, MemberShardInfoData i_memberShardInfo)
        {
            this.lookRoom = i_room;
@@ -198,16 +198,33 @@
                    //场景图片
                    var frameContr = new FrameLayoutControl();
                    frameContr.UseClickStatu = false;
                    frameContr.Width = Application.GetRealWidth(878);
                    frameContr.Height = Application.GetRealHeight(440);
                    frameContr.Gravity = Gravity.CenterHorizontal;
                    frameContr.BackgroundImagePath = data.IconPath;
                    frameContr.Height = Application.GetRealHeight(470);
                    listView.AddChidrenFrame(frameContr);
                    //场景图片
                    var btnPic = new ImageView();
                    btnPic.X = Application.GetRealWidth(179);
                    btnPic.Width = Application.GetRealWidth(844);
                    btnPic.Height = Application.GetRealHeight(420);
                    btnPic.ImagePath = data.IconPath;
                    btnPic.Radius = 17;
                    frameContr.AddChidren(btnPic);
                    var btnName = new NormalViewControl(251, 282, true);
                    btnName.X = ControlCommonResourse.XXLeft;
                    btnName.Gravity = Gravity.CenterVertical;
                    btnName.BackgroundColor = 0xff333333;
                    btnName.Radius = 17;
                    btnName.Text = data.Name;
                    btnName.TextSize = 15;
                    btnName.TextColor = UserCenterColor.Current.White;
                    btnName.TextAlignment = TextAlignment.Center;
                    frameContr.AddChidren(btnName);
                    var btnSelect = new IconViewControl(58);
                    btnSelect.UnSelectedImagePath = "Item/ItemUnSelected.png";
                    btnSelect.SelectedImagePath = "Item/ItemSelected.png";
                    btnSelect.X = Application.GetRealWidth(786);
                    btnSelect.X = Application.GetRealWidth(887);
                    btnSelect.Y = Application.GetRealHeight(35);
                    frameContr.AddChidren(btnSelect, ChidrenBindMode.BindEventOnly);
                    if (dicSelectScene.ContainsKey(data.Id) == true)