HDL Home App 第二版本 旧平台金堂用 正在使用
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs
old mode 100644 new mode 100755
File was renamed from ZigbeeApp20200828/Shared/Phone/UserCenter/Gateway/Manage/GatewayListForm.cs
@@ -2,7 +2,6 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using ZigBee.Device;
namespace Shared.Phone.UserCenter.GatewayManage
@@ -39,6 +38,9 @@
            //设置标题信息
            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uGatewayManagement));
            //展示模板不允许编辑
            if (Config.Instance.Home.IsShowTemplate == false)
            {
            //添加图标
            var btnAdd = new MostRightIconControl(69, 69);
            btnAdd.UnSelectedImagePath = "Item/Add.png";
@@ -49,6 +51,7 @@
                var form = new GatewayAdd.NewGateWayMenuSelectForm();
                form.AddForm();
            };
            }
            //初始化中部控件
            this.InitMiddleFrame();
@@ -101,8 +104,12 @@
            //调整列表控件的高度
            this.listview.AdjustRealHeight(Application.GetRealHeight(23));
            //如果是展示模板的话,不需要检测
            if (Common.Config.Instance.Home.IsShowTemplate == false)
            {
            //开启网关在线监测的线程
            this.StartGatewayOnlieCheckThread(listway);
            }
        }
        #endregion
@@ -146,6 +153,15 @@
                form.AddForm(gateway);
            };
            //如果是展示模板的话,不能编辑
            if (Common.Config.Instance.Home.IsShowTemplate == true)
            {
                return;
            }
            //非虚拟住宅,才有这个功能
            if (Common.Config.Instance.Home.IsVirtually == false)
            {
            //切换
            var btnSwitch = new NormalViewControl(Application.GetRealWidth(184), gatewayRow.Height, false);
            btnSwitch.BackgroundColor = 0xfffb744a;
@@ -176,6 +192,7 @@
                    });
                });
            };
            }
            //定位
            var btnPosition = gatewayRow.AddEditorControl(false);