gxc
2020-01-02 00ab3ddb140ba8bb88b5cf572b004a85e1da85e9
ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceFunctionSettionForm.cs
@@ -44,6 +44,10 @@
        /// 设备需要保存的设备功能
        /// </summary>
        private Dictionary<int, DeviceFunctionType> dicDeviceFuncType = new Dictionary<int, DeviceFunctionType>();
        /// <summary>
        /// 信息编辑控件
        /// </summary>
        private InformationEditorControl tableContr = null;
        #endregion
@@ -78,15 +82,11 @@
            this.ClearBodyFrame();
            //初始化桌布
            var tableContr = new InformationEditorControl();
            this.tableContr = new InformationEditorControl();
            this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1128);
            //初始化设备回路图标
            this.InitDeviceEpointIcon();
            //初始化桌布完成
            tableContr.FinishInitControl(bodyFrameLayout, this.listview);
            tableContr = null;
            //保存
            var btnFinish = new BottomClickButton();
@@ -209,6 +209,8 @@
            //添加功能类型行
            this.AddFunctionTypeRow();
            //初始化桌布完成
            tableContr.FinishInitControl(bodyFrameLayout, this.listview);
        }
        #endregion
@@ -220,6 +222,11 @@
        /// </summary>
        private void InitTopRightMenu()
        {
            //检测此回路是否拥有定位功能
            if (Common.LocalDevice.Current.DeviceIsCanFixedPosition(nowSelectDevice) == false)
            {
                return;
            }
            var btnIcon = new MostRightIconControl(69, 69);
            btnIcon.UnSelectedImagePath = "Item/More.png";
            topFrameLayout.AddChidren(btnIcon);
@@ -240,11 +247,11 @@
            string deviceMenu = string.Empty;
            //检测此回路是否拥有定位功能
            bool canTest = Common.LocalDevice.Current.DeviceIsCanFixedPosition(nowSelectDevice);
            if (canTest == true)
            {
                menuCount = 2;
            }
            var frame = new TopRightMenuControl(menuCount);
            //if (canTest == true)
            //{
            //    menuCount = 2;
            //}
            var frame = new TopRightMenuControl(menuCount, 1);
            if (canTest == true)
            {
                //定位
@@ -257,10 +264,10 @@
            }
            //删除
            deviceMenu = Language.StringByID(R.MyInternationalizationString.uDelete);
            frame.AddRowMenu(deviceMenu, "Item/DeleteIcon2.png", "Item/DeleteIcon2Selected.png", () =>
            {
            });
            //deviceMenu = Language.StringByID(R.MyInternationalizationString.uDelete);
            //frame.AddRowMenu(deviceMenu, "Item/DeleteIcon2.png", "Item/DeleteIcon2Selected.png", () =>
            //{
            //});
        }
        #endregion
@@ -366,9 +373,10 @@
            var frameBorder = new FrameLayout();
            frameBorder.Y = Application.GetRealHeight(147);
            frameBorder.Gravity = Gravity.CenterHorizontal;
            frameBorder.Width = Application.GetMinRealAverage(887);
            frameBorder.Height = Application.GetMinRealAverage(423);
            frameBorder.BorderWidth = 3;
            frameBorder.Width = Application.GetRealWidth(887);
            frameBorder.Height = Application.GetRealHeight(423);
            frameBorder.Radius = (uint)Application.GetRealHeight(6);
            frameBorder.BorderWidth = 1;
            frameBorder.BorderColor = 0xffd0d0d0;
            bodyFrameLayout.AddChidren(frameBorder);
@@ -444,7 +452,7 @@
                btnIcon.Name = "btn" + listDevice[i].DeviceEpoint;
                btnIcon.X = defultXX + i * (frame.Height + space);
                btnIcon.Radius = (uint)frame.Height / 2;
                btnIcon.BorderWidth = (uint)Application.GetMinRealAverage(6);
                btnIcon.BorderWidth = 2;
                btnIcon.BorderColor = 0xff979797;
                btnIcon.TextAlignment = TextAlignment.Center;
                btnIcon.TextColor = UserCenterColor.Current.TextGrayColor3;