| | |
| | | string showedFunctionRoomId = "0"; |
| | | List<Function> unallocatedList = new List<Function>(); |
| | | List<Function> allocatedList = new List<Function>(); |
| | | /// <summary> |
| | | /// 被修改数据的功能列表,在需要保存的时候再保存数据 |
| | | /// </summary> |
| | | List<Function> changeList = new List<Function>(); |
| | | #endregion |
| | | |
| | | public RoomEditFunctionPage(Room r) |
| | |
| | | |
| | | foreach (var function in DB_ResidenceData.functionList.GetAllFunction()) |
| | | { |
| | | function.roomIdList.Remove(null); |
| | | if (function.roomIdList.Count > 0 ) |
| | | function.roomIds.Remove(null); |
| | | if (function.roomIds.Count > 0 ) |
| | | { |
| | | allocatedList.Add(function); |
| | | } |
| | |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Y = Application.GetRealHeight(582), |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealHeight(44), |
| | | Radius = (uint)Application.GetRealHeight(22), |
| | | Height = Application.GetRealWidth(44), |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | |
| | | |
| | | LoadEventList(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 显示功能Row |
| | |
| | | var btnFunctionFloorName = new Button() |
| | | { |
| | | X = btnFunctionIcon.Right + Application.GetRealWidth(12), |
| | | Y = Application.GetRealHeight(50), |
| | | Y = Application.GetRealHeight(30), |
| | | Width = Application.GetRealWidth(200), |
| | | Height = Application.GetRealHeight(20), |
| | | Text = function.GetRoomListName(), |
| | |
| | | Height = Application.GetRealWidth(28), |
| | | UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | IsSelected = function.roomIdList.Contains(room.sid) |
| | | IsSelected = function.roomIds.Contains(room.sid) |
| | | }; |
| | | functionRow.AddChidren(btnChooseIcon); |
| | | LoadEvent_ChangeRoomFunctionList(functionRow, btnChooseIcon, function); |