old mode 100644
new mode 100755
| | |
| | | btnPic.InitControl(device.DeviceAddr, device.DeviceEpoint);
|
| | | btnPic.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var localPic = new Device.CommonForm.DeviceIconSelectedIMGByLocal();
|
| | | UserView.HomePage.Instance.AddChidren(localPic);
|
| | | UserView.HomePage.Instance.PageIndex += 1;
|
| | | localPic.Show();
|
| | | localPic.action = (unSelectedImagePath, selectedImagePath) =>
|
| | | var form = new SelectLocalDeviceImageForm();
|
| | | form.AddForm();
|
| | | form.FinishSelectEvent = (unSelectedImagePath) =>
|
| | | {
|
| | | //变更图片
|
| | | device.IconPath = unSelectedImagePath;
|
| | |
| | | }
|
| | |
|
| | | //所属模块
|
| | | caption = Language.StringByID(R.MyInternationalizationString.BelongModel);
|
| | | caption = Language.StringByID(R.MyInternationalizationString.BelongDevice);
|
| | | deviceName = Common.LocalDevice.Current.GetDeviceMacName(device);
|
| | | var rowBelongModul = new FrameCaptionViewControl(caption, deviceName, listview.rowSpace / 2);
|
| | | listview.AddChidren(rowBelongModul);
|
| | |
| | | }
|
| | |
|
| | | //所属模块
|
| | | caption = Language.StringByID(R.MyInternationalizationString.BelongModel);
|
| | | caption = Language.StringByID(R.MyInternationalizationString.BelongDevice);
|
| | | nameValue = Common.LocalDevice.Current.GetDeviceMacName(device);
|
| | | var rowBelongModul = new FrameCaptionViewControl(caption, nameValue, listview.rowSpace / 2);
|
| | | rowBelongModul.UseClickStatu = false;
|
| | |
| | | }
|
| | |
|
| | | //如果是新风
|
| | | if (device.Type == DeviceType.FreshAir) |
| | | { |
| | | //功能类型 |
| | | string caption = Language.StringByID(R.MyInternationalizationString.uFunctionType); |
| | | if (device.Type == DeviceType.FreshAir)
|
| | | {
|
| | | //功能类型
|
| | | string caption = Language.StringByID(R.MyInternationalizationString.uFunctionType);
|
| | | string strType = Language.StringByID(R.MyInternationalizationString.FreshAir);
|
| | | var btnFunction = new FrameCaptionViewControl(caption, strType, listview.rowSpace / 2);
|
| | | btnFunction.UseClickStatu = false;
|
| | | listview.AddChidren(btnFunction);
|
| | | btnFunction.InitControl();
|
| | | //底线
|
| | | btnFunction.AddBottomLine(); |
| | | btnFunction.AddBottomLine();
|
| | | }
|
| | | }
|
| | |
|