| | |
| | | public void ShowFunction(bool selectAll) |
| | | { |
| | | SelectAll = selectAll; |
| | | |
| | | var devList = Common.Room.AllRoomDeviceUIList; |
| | | |
| | | //选择功能--直接从房间的devicelist中获取 |
| | | if (Common.Room.AllRoomDeviceUIList == null) |
| | | if (devList == null) |
| | | { |
| | | return; |
| | | } |
| | | if (Common.Room.AllRoomDeviceUIList.Count == 0) |
| | | if (devList.Count == 0) |
| | | { |
| | | ShowNoFunctionTip(); |
| | | } |
| | |
| | | functionTypeIMG.ClickBtn.MouseUpEventHandler += ShowSameTypeFunction; |
| | | |
| | | |
| | | if (deviceType == Shared.Common.Room.AllRoomDeviceUIList[0].CommonDevice.Type) |
| | | if (deviceType == devList[0].CommonDevice.Type) |
| | | { |
| | | ShowSameTypeFunction(functionTypeIMG.ImageBtn, null); |
| | | } |
| | |
| | | Height = Application.GetRealHeight(200), |
| | | Width = Application.GetRealWidth(700), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextID = R.MyInternationalizationString.NoFunction, |
| | | //Text = "没有功能 \n 请在个人中心中--设备管理处添加", |
| | | Text= Language.StringByID(R.MyInternationalizationString.NoFunction_Tip).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsMoreLines = true |
| | |
| | | Height = Application.GetRealHeight(200), |
| | | Width = Application.GetRealWidth(700), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextID = R.MyInternationalizationString.NoScene, |
| | | Text = Language.StringByID(R.MyInternationalizationString.NoScene_Tip).Replace("{\\r\\n}", "\r\n"), |
| | | TextColor = ZigbeeColor.Current.GXCPlaceHolderTextColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsMoreLines = true |