| | |
| | | else
|
| | | {
|
| | | var frameBack = new FrameLayout();
|
| | | frameBack.X = HdlControlResourse.XXLeft;
|
| | | frameBack.X = ControlCommonResourse.XXLeft;
|
| | | frameBack.Y = Application.GetRealHeight(178);
|
| | | frameBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameBack.Width = bodyFrameLayout.Width;
|
| | |
| | | foreach (var device in listDevice)
|
| | | {
|
| | | var frameRow = new FrameRowControl(listView.rowSpace / 2);
|
| | | frameRow.LeftOffset = Application.GetRealWidth(46) - HdlControlResourse.XXLeft;
|
| | | frameRow.RightOffset = -HdlControlResourse.XXLeft;
|
| | | frameRow.LeftOffset = Application.GetRealWidth(46) - ControlCommonResourse.XXLeft;
|
| | | frameRow.RightOffset = -ControlCommonResourse.XXLeft;
|
| | | listView.AddChidren(frameRow);
|
| | | //图标
|
| | | var btnIcon = frameRow.AddLeftIcon(81);
|
| | | HdlDeviceCommonLogic.Current.SetDeviceIconToControl(btnIcon, device);
|
| | | Common.LocalDevice.Current.SetDeviceIconToControl(btnIcon, device);
|
| | | //名称
|
| | | var btnView = frameRow.AddLeftCaption(string.Empty, 600);
|
| | | btnView.Text = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device);
|
| | | btnView.Text = Common.LocalDevice.Current.GetDeviceEpointName(device);
|
| | | btnView.TextSize = 15;
|
| | | //底线
|
| | | frameRow.AddBottomLine();
|
| | |
| | | btnSelect.UnSelectedImagePath = "Item/ItemUnSelected.png";
|
| | | btnSelect.SelectedImagePath = "Item/ItemSelected.png";
|
| | |
|
| | | string mainKeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(device);
|
| | | string mainKeys = Common.LocalDevice.Current.GetDeviceMainKeys(device);
|
| | | if (dicSelectDevice.ContainsKey(mainKeys) == true)
|
| | | {
|
| | | btnSelect.IsSelected = true;
|
| | |
| | | //如果已经分享了,则不显示
|
| | | continue;
|
| | | }
|
| | | var typeInfo = HdlDeviceCommonLogic.Current.GetDeviceBelongEnumInfo(device);
|
| | | var typeInfo = Common.LocalDevice.Current.GetDeviceBelongEnumInfo(device);
|
| | | if (dic.ContainsKey(typeInfo.BeloneText) == false)
|
| | | {
|
| | | dic[typeInfo.BeloneText] = new List<CommonDevice>();
|