| | |
| | | bghFrameLyout.AddChidren(areaBgh); |
| | | bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * roomList.Count); |
| | | areaBgh.Height = Application.GetRealHeight(44 * roomList.Count); |
| | | bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{roomList.Count+1}.png"; |
| | | bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{roomList.Count}.png"; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | funAllAreaView.btnIcon1.MouseUpEventHandler += roomClick; |
| | | //功能点击事件 |
| | | EventHandler<MouseEventArgs> funClick = (sender3, e3) =>{ |
| | | |
| | | //获取最终显示列表 |
| | | var functionList = LogicMethod.GetFunctionDeviceList(selectedRoom, if_type); |
| | | //获取设备列表的类型(例如:灯光类,窗帘类。。。) |
| | | var deviceTypeList = LogicMethod.GetDeviceTypeList(functionList); |
| | | if (deviceTypeList.Count==0) { |
| | | //没有类型直接返回去; |
| | | return; |
| | | } |
| | | #region 区域弹框界面 |
| | | FrameLayout fLayout = new FrameLayout |
| | | { |
| | |
| | | Height = Application.GetRealHeight(44 * 5), |
| | | }; |
| | | |
| | | //获取最终显示列表 |
| | | var functionList = LogicMethod.GetFunctionDeviceList(selectedRoom, if_type); |
| | | //获取设备列表的类型(例如:灯光类,窗帘类。。。) |
| | | var deviceTypeList = LogicMethod.GetDeviceTypeList(functionList); |
| | | |
| | | |
| | | |
| | | if (deviceTypeList.Count > 5) |
| | |
| | | bghFrameLyout.AddChidren(areaBgh); |
| | | bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * deviceTypeList.Count); |
| | | areaBgh.Height = Application.GetRealHeight(44 * deviceTypeList.Count); |
| | | bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{deviceTypeList.Count+1}.png"; |
| | | bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{deviceTypeList.Count}.png"; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | funAllAreaView.btnText2.Text = areaView.btnClick.Tag.ToString(); |
| | | ///获取单个类型(例如:灯光类。。)设备FunctionType列表 |
| | | var typeFunctionList = LogicMethod.GetDeviceTypeFunctionList(areaView.btnClick.Tag.ToString()); |
| | | ///获取单个类型(例如:灯光类。。)显示设备列表 |
| | | ///获取单个灯光类型(例如:灯光1,灯光2。。)显示设备列表 |
| | | var lists = LogicMethod.GetShowDeviceList(typeFunctionList, functionList); |
| | | DeviceListView(vv, lists); |
| | | }; |