| | |
| | | this.curDeviceBindType = deviceBindType; |
| | | } |
| | | |
| | | #region ◆ 变量申明__________________________ |
| | | #region 变量申明 |
| | | /// <summary> |
| | | /// 当前按键 |
| | | /// </summary> |
| | | ZigBee.Device.Panel currentKey; |
| | | //显示被绑定设备或场景的view |
| | | /// <summary> |
| | | /// 显示被绑定设备或场景的view |
| | | /// </summary> |
| | | VerticalScrolViewLayout midVerticalScrolViewLayout; |
| | | /// <summary> |
| | | /// 显示房间的view |
| | | /// </summary> |
| | | HorizontalScrolViewLayout btnHorizontalScrolViewLayout; |
| | | /// <summary> |
| | | /// 按键配置的目标列表 |
| | | /// </summary> |
| | | List<CommonDevice> targetList = new List<CommonDevice>(); |
| | | /// <summary> |
| | | /// 房间列表 |
| | | /// </summary> |
| | | List<Room> roomList = new List<Room>(); |
| | | /// <summary> |
| | | /// 添加设备后的回调 |
| | | /// </summary> |
| | | public Action<List<BindListResponseObj>> actionAddDevicePage; |
| | | /// <summary> |
| | | /// 当前设备类型列表 |
| | | /// </summary> |
| | | List<DeviceUI> curTypeDeviceList = new List<DeviceUI> { }; |
| | | /// <summary> |
| | | /// 当前设备绑定类型 |
| | | /// </summary> |
| | | string curDeviceBindType = ""; |
| | | /// <summary> |
| | | /// 楼层文本 |
| | | /// </summary> |
| | | Button btnFloorText; |
| | | /// <summary> |
| | | /// 楼层表 |
| | | /// </summary> |
| | | Dictionary<string, string> dicFloor; |
| | | /// <summary> |
| | | /// 当前选择的按键模式 |
| | | /// </summary> |
| | | Button btnChooseKeyMode; |
| | | bool IsInitEntry = false;//是否首次进入该页 |
| | | /// <summary> |
| | | /// 是否首次进入该页 |
| | | /// </summary> |
| | | bool IsInitEntry = false; |
| | | /// <summary> |
| | | /// 当前按键的所有房间设备列表 |
| | | /// </summary> |
| | | List<DeviceUI> currentKeyAllRoomDeviceList = new List<DeviceUI>(); |
| | | /// <summary> |
| | | /// 临时存储的目标列表 |
| | | /// </summary> |
| | | Dictionary<string, CommonDevice> oldTargetList = new Dictionary<string, CommonDevice> { }; |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 添加设备显示 |
| | | /// </summary> |
| | | public void Show() |
| | | { |
| | | targetList.Clear(); |
| | |
| | | MidFrameLayoutContent(btnFloorText); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 中部布局 |
| | | /// </summary> |
| | | async void MidFrameLayoutContent(Button btnFloorText) |
| | | { |
| | | #region UI |
| | |
| | | RefreshDeviceList(curRoom); |
| | | } |
| | | |
| | | //当前按键所有显示房间的所有设备处理 |
| | | /// <summary> |
| | | /// 当前按键所有显示房间的所有设备处理 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | List<DeviceUI> GetALlDispalyRoomDeviceList() |
| | | { |
| | | currentKeyAllRoomDeviceList.Clear(); |
| | |
| | | } |
| | | } |
| | | |
| | | // 侧边导航栏 |
| | | /// <summary> |
| | | /// 选择楼层的侧边栏 |
| | | /// </summary> |
| | | void SideslipFramelayout() |
| | | { |
| | | var dialog = new Dialog |