| | |
| | | /// Room |
| | | /// </summary> |
| | | private Common.Room room; |
| | | /// <summary> |
| | | /// action |
| | | /// </summary> |
| | | public Action action; |
| | | |
| | | FrameLayout roomNameBackground; |
| | | |
| | |
| | | CommonDevice humidDevice; |
| | | |
| | | #region ◆ 接口__________________________ |
| | | /// <summary> |
| | | /// 处理变化事件 --将弃用 改用DeviceInfoChange() |
| | | /// </summary> |
| | | /// <returns>The changed.</returns> |
| | | /// <param name="common">Common.</param> |
| | | public void Changed(CommonDevice common) |
| | | { |
| | | |
| | | } |
| | | /// <summary> |
| | | /// Changeds the IL ogic status. |
| | | /// </summary> |
| | | /// <param name="logic">Logic.</param> |
| | | public void ChangedILogicStatus(ZigBee.Device.Logic logic) |
| | | { |
| | | //throw new NotImplementedException(); |
| | | } |
| | | /// <summary> |
| | | /// Changeds the IS cene status. |
| | | /// </summary> |
| | | /// <param name="scene">Scene.</param> |
| | | public void ChangedISceneStatus(Scene scene) |
| | | { |
| | | //throw new NotImplementedException(); |
| | | } |
| | | /// <summary> |
| | | /// 设备状态更新接口 |
| | | /// <para>type:如果为 DeviceInComingRespon:设备新上报</para> |
| | |
| | | /// <param name="r"></param> |
| | | public void Init(Common.Room r) |
| | | { |
| | | this.RemoveAll(); |
| | | |
| | | this.room = r; |
| | | |
| | | this.temperDevice= Common.LocalDevice.Current.GetDevice(room.TemperatrueDevice); |
| | | this.temperDevice = Common.LocalDevice.Current.GetDevice(room.TemperatrueDevice); |
| | | |
| | | this.humidDevice= Common.LocalDevice.Current.GetDevice(room.HumidityDevice); |
| | | this.humidDevice = Common.LocalDevice.Current.GetDevice(room.HumidityDevice); |
| | | |
| | | var roomBackView = new FrameLayout() |
| | | { |
| | |
| | | form.AddForm(room); |
| | | form.FinishEditorEvent += (roomName2) =>
|
| | | {
|
| | | action?.Invoke();
|
| | | //重新刷新控件
|
| | | this.Init(this.room);
|
| | | }; |
| | | }; |
| | | } |