old mode 100755
new mode 100644
| | |
| | | btnFunction.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //简约环境面板的按键配置
|
| | | var form = new DevicePanel.PanelSimpleEnvironmentButtonSettionForm();
|
| | | var form = new DevicePanel.PanelSettionWithSourceForm();
|
| | | form.AddForm(listNewDevice[0]);
|
| | | };
|
| | | }
|
| | |
| | | var form = new DevicePanel.PanelFangyueButtonSettionForm();
|
| | | form.AddForm(listNewDevice[0]);
|
| | | }
|
| | | else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment)
|
| | | else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueEnvironment || deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
|
| | | {
|
| | | //方悦环境面板的按键配置
|
| | | var form = new DevicePanel.PanelFangyueEnvironmentButtonSettionForm();
|
| | | form.AddForm(listNewDevice[0]);
|
| | | }
|
| | | else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_FangyueFreshAir)
|
| | | {
|
| | | //方悦新风面板的按键配置
|
| | | var form = new DevicePanel.PanelFangyueFreshAirButtonSettionForm();
|
| | | //方悦环境面板的按键配置&方悦新风面板的按键配置
|
| | | var form = new DevicePanel.PanelSettionWithSourceForm();
|
| | | form.AddForm(listNewDevice[0]);
|
| | | }
|
| | | else
|
| | |
| | | private void AddPirSensorWorkModeRow()
|
| | | {
|
| | | if (this.deviceEnumInfo.ConcreteType != DeviceConcreteType.Sensor_Pir
|
| | | || deviceEnumInfo.IsHdlDevice == false
|
| | | || this.listNewDevice.Count != 2)
|
| | | || deviceEnumInfo.IsHdlDevice == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | /// </summary>
|
| | | private void AddPirSensorBindRow()
|
| | | {
|
| | | if (this.deviceEnumInfo.ConcreteType != DeviceConcreteType.Sensor_Pir
|
| | | || this.listNewDevice.Count != 2)
|
| | | if (this.deviceEnumInfo.ConcreteType != DeviceConcreteType.Sensor_Pir)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | paneTargetsBaseFormp.Show();
|
| | | paneTargetsBaseFormp.actionHumidityTarget += (bindName) =>
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | if (string.IsNullOrEmpty(bindName))
|
| | | {
|
| | |
| | | paneTargetsBaseFormp.Show();
|
| | | paneTargetsBaseFormp.actionTemperatureTarget += (bindName) =>
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | if (string.IsNullOrEmpty(bindName))
|
| | | {
|
| | |
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
|
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime) + "(" + "5007_2" + ")", Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
|
| | | });
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime), Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
|
| | | new Tip() { MaxWidth = 150, Text = Language.StringByID(R.MyInternationalizationString.GwResponseOvertime) + "(" + "5007_3" + ")", Direction = AMPopTipDirection.None, CloseTime = 1 }.Show(Common.CommonPage.Instance);
|
| | | });
|
| | | return;
|
| | | }
|
| | |
| | | listview.AddChidren(rowVersion);
|
| | | rowVersion.AddLeftCaption(caption, 600);
|
| | | //版本
|
| | | this.btnAirConditionerVersion = rowVersion.AddMostRightView("", 800);
|
| | | this.btnAirConditionerVersion = rowVersion.AddMostRightView(((AC)this.listNewDevice[0]).AcModelVersion, 800);
|
| | | //底线
|
| | | rowVersion.AddBottomLine();
|
| | |
|
| | |
| | |
|
| | | if (deviceFirmware != null && deviceFirmware.FirmwareVersion > oTADevice.ImgVersion)
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | if (btnNewVersion != null)
|
| | | {
|
| | | btnNewVersion.Visible = true;
|
| | | }
|
| | | });
|
| | | }, ShowErrorMode.NO);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | //获取中....
|
| | | this.btnAirConditionerVersion.TextID = R.MyInternationalizationString.uGetting;
|
| | | //如果是虚拟住宅或者展示模板的话
|
| | | if (Config.Instance.Home.IsShowTemplate == true || Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | bool notVersion = ((AC)this.listNewDevice[0]).AcModelVersion == string.Empty;
|
| | | if (notVersion == true)
|
| | | {
|
| | | //获取中
|
| | | btnAirConditionerVersion.Text = Language.StringByID(R.MyInternationalizationString.uGetting);
|
| | | }
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | //读取空调模块版本
|
| | | var result = await HdlDeviceAirConditionerLogic.Current.ReadACFirewareVersionAsync(listNewDevice[0]);
|
| | | if (result == null || result.readACFirewareVersionResponData == null || result.readACFirewareVersionResponData.Status != 0)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //获取失败
|
| | | btnAirConditionerVersion.TextID = R.MyInternationalizationString.uGettingFail;
|
| | | });
|
| | | { |
| | | if (notVersion == true) |
| | | { |
| | | //获取失败 |
| | | HdlThreadLogic.Current.RunMain(() => |
| | | { |
| | | btnAirConditionerVersion.Text = Language.StringByID(R.MyInternationalizationString.uGettingFail); |
| | | }); |
| | | }
|
| | | return;
|
| | | }
|
| | | else
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | btnAirConditionerVersion.Text = result.readACFirewareVersionResponData.FirewareVersion.Replace("-", string.Empty);
|
| | | });
|
| | | }
|
| | | ((AC)this.listNewDevice[0]).AcModelVersion = result.readACFirewareVersionResponData.FirewareVersion.Replace("-", string.Empty);
|
| | | btnAirConditionerVersion.Text = ((AC)this.listNewDevice[0]).AcModelVersion;
|
| | | });
|
| | | });
|
| | | }
|
| | |
|