old mode 100755
new mode 100644
File was renamed from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSimpleSelectControl.cs |
| | |
| | | using System.Text;
|
| | | using ZigBee.Device;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | namespace Shared.Phone |
| | | {
|
| | | /// <summary>
|
| | | /// 做成一个简单设备选择的行控件
|
| | |
| | | /// </summary>
|
| | | public CommonDevice device
|
| | | {
|
| | | get { return Common.LocalDevice.Current.GetDevice(MainKeys); }
|
| | | get { return HdlDeviceCommonLogic.Current.GetDevice(MainKeys); } |
| | | }
|
| | | /// <summary>
|
| | | /// 选择控件
|
| | |
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public DeviceSimpleSelectControl(CommonDevice i_device, bool autoSelect, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | | {
|
| | | this.MainKeys = Common.LocalDevice.Current.GetDeviceMainKeys(i_device);
|
| | | this.MainKeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(i_device); |
| | | if (autoSelect == true)
|
| | | {
|
| | | this.ButtonClickEvent += (sender, e) =>
|
| | |
| | | {
|
| | | //图标
|
| | | var btnIcon = this.AddLeftIcon();
|
| | | Common.LocalDevice.Current.SetDeviceIconToControl(btnIcon, device);
|
| | | HdlDeviceCommonLogic.Current.SetDeviceIconToControl(btnIcon, device); |
| | |
|
| | | //设备
|
| | | string eName = Common.LocalDevice.Current.GetDeviceEpointName(device);
|
| | | string eName = HdlDeviceCommonLogic.Current.GetDeviceEpointName(device); |
| | | this.AddLeftCaption(eName, 850);
|
| | |
|
| | | btnSelect = this.AddMostRightEmptyIcon(58, 58);
|