| | |
| | | #endregion |
| | | |
| | | ///没有房间直接返回去; |
| | | var listAllRoom = HdlRoomLogic.Current.GetAllListRooms(); |
| | | var listAllRoom = UserCenter.HdlRoomLogic.Current.GetAllListRooms(); |
| | | if (listAllRoom.Count == 0) |
| | | { |
| | | return; |
| | |
| | | { |
| | | if (clickTag == "no" || tempScene == null) |
| | | { |
| | | var alert = new ShowMsgControl(ShowMsgType.Normal, |
| | | var alert = new UserCenter.ShowMsgControl(ShowMsgType.Normal, |
| | | Language.StringByID(MyInternationalizationString.scenetip), |
| | | Language.StringByID(MyInternationalizationString.confrim)); |
| | | alert.Show(); |
| | |
| | | { |
| | | |
| | | Width = Application.GetRealWidth(450), |
| | | Height = Application.GetRealHeight(780), |
| | | Height = Application.GetRealWidth(780), |
| | | X = Application.GetRealWidth(1080 - 468 - 35), |
| | | Y = Application.GetRealHeight(184), |
| | | BackgroundImagePath = "Item/SelectFloor_Right.png", |
| | |
| | | |
| | | var btnfoolricon = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(81), |
| | | Height = Application.GetMinRealAverage(81), |
| | | Width = Application.GetRealWidth(81), |
| | | Height = Application.GetRealWidth(81), |
| | | UnSelectedImagePath = "Floor/Floor.png", |
| | | Gravity = Gravity.CenterVertical, |
| | | }; |
| | |
| | | middle.RemoveAll(); |
| | | foreach (var sceneId in scenelist) |
| | | { |
| | | var scene = HdlSceneLogic.Current.GetSceneUIBySceneId(sceneId); |
| | | var scene = UserCenter.HdlSceneLogic.Current.GetSceneUIBySceneId(sceneId); |
| | | if (scene == null) |
| | | { |
| | | continue; |
| | |
| | | |
| | | var sceneIconBtn = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(81), |
| | | Height = Application.GetMinRealAverage(81), |
| | | Width = Application.GetRealWidth(81), |
| | | Height = Application.GetRealWidth(81), |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(55), |
| | | UnSelectedImagePath = "ZigeeLogic/scene.png", |
| | |
| | | |
| | | var selectedBtn = new Button |
| | | { |
| | | Width = Application.GetMinRealAverage(60), |
| | | Height = Application.GetMinRealAverage(60), |
| | | Width = Application.GetRealWidth(60), |
| | | Height = Application.GetRealWidth(60), |
| | | X = Application.GetRealWidth(789), |
| | | UnSelectedImagePath = "ZigeeLogic/selected.png", |
| | | Visible = false, |