old mode 100644
new mode 100755
| | |
| | | if (listdevice.Count > 0 && Common.LocalDevice.Current.DeviceIsCanFixedPosition(listdevice[0]) == true)
|
| | | {
|
| | | //定位
|
| | | var btnPosition = new NormalViewControl(Application.GetRealWidth(184), rowMenu.Height, false);
|
| | | var btnPosition = rowMenu.AddEditorControl(false);
|
| | | btnPosition.TextID = R.MyInternationalizationString.uFixedPosition;
|
| | | btnPosition.TextAlignment = TextAlignment.Center;
|
| | | btnPosition.TextSize = 12;
|
| | | btnPosition.TextColor = UserCenterColor.Current.White;
|
| | | btnPosition.BackgroundColor = 0xff4a4a4a;
|
| | | rowMenu.AddRightView(btnPosition);
|
| | | btnPosition.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //定位
|
| | |
| | | if (Common.LocalDevice.Current.DeviceIsCanFixedPosition(device) == true)
|
| | | {
|
| | | //定位
|
| | | var btnPosition = new NormalViewControl(Application.GetRealWidth(184), rowDevice.Height, false);
|
| | | var btnPosition = rowDevice.AddEditorControl(false);
|
| | | btnPosition.TextID = R.MyInternationalizationString.uFixedPosition;
|
| | | btnPosition.TextAlignment = TextAlignment.Center;
|
| | | btnPosition.TextSize = 12;
|
| | | btnPosition.TextColor = UserCenterColor.Current.White;
|
| | | btnPosition.BackgroundColor = 0xff4a4a4a;
|
| | | rowDevice.AddRightView(btnPosition);
|
| | | btnPosition.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //定位
|
| | |
| | | }
|
| | | //新风面板
|
| | | else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
|
| | | { |
| | | //方悦新风面板的按键配置 |
| | | var form = new DevicePanel.PanelFangyueFreshAirButtonSettionForm(); |
| | | {
|
| | | //方悦新风面板的按键配置
|
| | | var form = new DevicePanel.PanelFangyueFreshAirButtonSettionForm();
|
| | | form.AddForm(device);
|
| | | }
|
| | | //方悦面板
|
| | |
| | | {
|
| | | //干接点
|
| | | if (device.Type == DeviceType.OnOffSwitch)
|
| | | { |
| | | //方悦面板的按键配置 |
| | | {
|
| | | //方悦面板的按键配置
|
| | | var form = new DevicePanel.PanelFangyueButtonSettionForm();
|
| | | form.AddForm(device); |
| | | form.AddForm(device);
|
| | | }
|
| | | //继电器
|
| | | else if (device.Type == DeviceType.OnOffOutput)
|