| | |
| | | bodyFrameLayout.AddChidren(frameTitle);
|
| | | var btnTitle = new NormalViewControl(800, 60, true);
|
| | | btnTitle.Y = Application.GetRealHeight(49);
|
| | | btnTitle.X = ControlCommonResourse.XXLeft;
|
| | | btnTitle.X = HdlControlResourse.XXLeft;
|
| | | btnTitle.TextSize = 15;
|
| | | btnTitle.TextColor = UserCenterColor.Current.TextColor2;
|
| | | btnTitle.Text = detailTile;
|
| | |
| | | for (int i = 0; i < listDevice.Count; i++)
|
| | | {
|
| | | //获取设备
|
| | | var device = Common.LocalDevice.Current.GetDevice(listDevice[i]);
|
| | | var device = HdlDeviceCommonLogic.Current.GetDevice(listDevice[i]);
|
| | | if (device == null)
|
| | | {
|
| | | continue;
|
| | |
| | | listView.AddChidren(frameRow);
|
| | | //图标
|
| | | var btnIcon = frameRow.AddLeftIcon(81);
|
| | | Common.LocalDevice.Current.SetDeviceIconToControl(btnIcon, device);
|
| | | HdlDeviceCommonLogic.Current.SetDeviceIconToControl(btnIcon, device);
|
| | | //设备名字
|
| | | var btnName = frameRow.AddLeftCaption(Common.LocalDevice.Current.GetDeviceEpointName(device), 700);
|
| | | var btnName = frameRow.AddLeftCaption(HdlDeviceCommonLogic.Current.GetDeviceEpointName(device), 700);
|
| | | btnName.TextSize = 15;
|
| | | if (Common.LocalDevice.Current.CheckDeviceIsOnline(device) == false)
|
| | | if (HdlDeviceCommonLogic.Current.CheckDeviceIsOnline(device) == false)
|
| | | {
|
| | | btnName.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | }
|