lss
2020-06-12 9c16d3614d9b88c637f967518a329f239fcd3aaf
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs
@@ -43,7 +43,7 @@
        /// <summary>
        /// 显示IP控件
        /// </summary>
        private NormalViewControl btnIp = null;
        public NormalViewControl btnIp = null;
        /// <summary>
        /// 在线状态
@@ -57,9 +57,12 @@
            get { return m_IsOnline; }
            set
            {
                m_IsOnline = value;
                //变更状态
                this.SetOnlineStatu(m_IsOnline);
                if (m_IsOnline != value)
                {
                    m_IsOnline = value;
                    //变更状态
                    this.SetOnlineStatu(m_IsOnline);
                }
            }
        }
@@ -71,10 +74,10 @@
        /// 做成一个显示网关信息的RowLayout,添加此控件到容器后,调用【InitControl()】完成初始化
        /// </summary>
        /// <param name="i_zbGateway">网关对象</param>
        /// <param name="ChidrenYaxis">子控件Y轴偏移量(有些界面需要这种特殊操作)</param>
        /// <param name="ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
        public GatewayRowControl(ZbGateway i_zbGateway, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
        {
            this.zbGatewayId = HdlGatewayLogic.Current.GetGatewayId(i_zbGateway);
            this.zbGatewayId = i_zbGateway.GwId;
        }
        /// <summary>
@@ -118,16 +121,20 @@
            btnName.TextSize = 15;
            //这个坐标有点特殊
            btnName.Y = Application.GetRealHeight(12) + this.chidrenYaxis;
            frameTable.AddChidren(btnName, ChidrenBindMode.BindEventOnly);
            frameTable.AddChidren(btnName, ChidrenBindMode.BindEvent);
            //房间
            string strIp = HdlGatewayLogic.Current.GetGatewayBaseInfoAttribute(tempWay, "IpAddress").ToString();
            string strIp = string.Empty;
            if (tempWay != null)
            {
                strIp = tempWay.GwIP;
            }
            this.btnIp = frameTable.AddLeftCaption(strIp, 600, 50, true);
            //这个坐标有点特殊
            btnIp.Y = Application.GetRealHeight(72) + this.chidrenYaxis;
            btnIp.TextSize = 12;
            btnIp.TextColor = UserCenterColor.Current.TextGrayColor1;
            frameTable.AddChidren(btnIp, ChidrenBindMode.BindEventOnly);
            frameTable.AddChidren(btnIp, ChidrenBindMode.BindEvent);
            //初始值在线
            this.IsOnline = true;
@@ -145,7 +152,7 @@
        {
            if (zbway != null)
            {
                this.zbGatewayId = HdlGatewayLogic.Current.GetGatewayId(zbway);
                this.zbGatewayId = zbway.GwId;
            }
            bool bonline = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbway);