| | |
| | | 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))
|
| | | {
|
| | |
| | |
|
| | | if (deviceFirmware != null && deviceFirmware.FirmwareVersion > oTADevice.ImgVersion)
|
| | | {
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | if (btnNewVersion != null)
|
| | | {
|
| | | btnNewVersion.Visible = true;
|
| | | }
|
| | | });
|
| | | }, ShowErrorMode.NO);
|
| | | }
|
| | | });
|
| | | }
|