| | |
| | | /// <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>
|
| | |
| | | btnName.TextSize = 15;
|
| | | //这个坐标有点特殊
|
| | | btnName.Y = Application.GetRealHeight(12) + this.chidrenYaxis;
|
| | | frameTable.AddChidren(btnName, ChidrenBindMode.BindEventOnly);
|
| | | frameTable.AddChidren(btnName, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //房间
|
| | | string strIp = string.Empty;
|
| | | if (tempWay != null)
|
| | | {
|
| | | strIp = tempWay.getGatewayBaseInfo.IpAddress;
|
| | | 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;
|
| | |
| | | {
|
| | | if (zbway != null)
|
| | | {
|
| | | this.zbGatewayId = HdlGatewayLogic.Current.GetGatewayId(zbway);
|
| | | this.zbGatewayId = zbway.GwId;
|
| | | }
|
| | | bool bonline = HdlGatewayLogic.Current.CheckGatewayOnlineByFlag(zbway);
|
| | |
|