| | |
| | | { |
| | | SelectAll = selectAll; |
| | | //选择功能--直接从房间的devicelist中获取 |
| | | Shared.Common.Room.GetAllRoomDeviceUIList(); |
| | | Shared.Common.Room.GetAllRoomDeviceTypeList(); |
| | | if (Common.Room.AllRoomDeviceUIList == null) |
| | | { |
| | | return; |
| | |
| | | typeRowLayout.AddChidren(functionTypeIMG); |
| | | |
| | | |
| | | functionTypeIMG.ImageBtn.MouseUpEventHandler += ShowSameTypeFunction; |
| | | functionTypeIMG.NameBtn.MouseUpEventHandler += ShowSameTypeFunction; |
| | | functionTypeIMG.ImageBG.MouseUpEventHandler += ShowSameTypeFunction; |
| | | functionTypeIMG.ClickBtn.MouseUpEventHandler += ShowSameTypeFunction; |
| | | |
| | | |
| | | if (deviceType == Shared.Common.Room.AllRoomDeviceUIList[0].CommonDevice.Type) |
| | | { |
| | |
| | | private void ShowSameTypeFunction(object typeSender, MouseEventArgs mouseEventArgs) |
| | | { |
| | | //选择功能--直接从房间的devicelist中获取 |
| | | Shared.Common.Room.GetAllRoomDeviceUIList(); |
| | | tempFunctionTypeBtn.IsSelected = false; |
| | | tempFunctionTypeBtn = (typeSender as Button).Parent as FunctionButton; |
| | | ((typeSender as Button).Parent as FunctionButton).IsSelected = true; |