wxr
2020-03-31 002a3f2e9d2f9579c01f88af12bd8a320003569f
HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditFunctionPage.cs
@@ -45,7 +45,7 @@
        #region 区域变量
        int showdFunctionCount = 0;
        string roomId;
        string showedFunctionRoomId="0";
        string showedFunctionRoomId = "0";
        #endregion
        public RoomEditFunctionPage(string rId)
@@ -101,7 +101,7 @@
            btnChoosedRoom = new Button()
            {
                X = Application.GetRealWidth(313-100+24),
                X = Application.GetRealWidth(313 - 100 + 24),
                Width = Application.GetRealWidth(100),
                //Height = Application.GetRealHeight(55),
                TextAlignment = TextAlignment.CenterRight,
@@ -168,7 +168,7 @@
            foreach (var function in DB_ResidenceData.residenceData.functionList.functions)
            {
                if (function.roomIdList.Count > 0 && !function.roomIdList.Contains(roomId)&& showUnallocated)
                if (function.roomIdList.Count > 0 && !function.roomIdList.Contains(roomId) && showUnallocated)
                {
                    continue;
                }
@@ -204,16 +204,16 @@
                functionRow.AddChidren(btnFunctionIcon);
                switch (function.functionCategory)
                {
                    case FunctionType.AC:
                    case FunctionCategory.AC:
                        btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/AC/AcThinIcon.png";
                        break;
                    case FunctionType.Curtain:
                    case FunctionCategory.Curtain:
                        btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Curtain/CurtainThinIcon.png";
                        break;
                    case FunctionType.Light:
                    case FunctionCategory.Light:
                        btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/Light/LightThinIcon.png";
                        break;
                    case FunctionType.FloorHeating:
                    case FunctionCategory.FloorHeating:
                        btnFunctionIcon.UnSelectedImagePath = "FunctionIcon/FloorHeating/FloorHeatingThinIcon.png";
                        break;
                }
@@ -271,7 +271,7 @@
                    IsSelected = function.roomIdList.Contains(roomId)
                };
                functionRow.AddChidren(btnChooseIcon);
                LoadEvent_ChangeRoomFunctionList(functionRow,btnChooseIcon, function);
                LoadEvent_ChangeRoomFunctionList(functionRow, btnChooseIcon, function);
                showdFunctionCount++;
            }
@@ -331,7 +331,7 @@
                Tag = "0"
            };
            roomListView.AddChidren(btnAllRoom);
            LoadEvent_ChangeShowedFunctionList(btnAllRoom,dialog,Language.StringByID(StringId.All));
            LoadEvent_ChangeShowedFunctionList(btnAllRoom, dialog, Language.StringByID(StringId.All));
            roomListView.AddChidren(new Button()
            {
@@ -357,7 +357,7 @@
                    Tag = tempRoom.sid,
                };
                roomListView.AddChidren(btnRoom);
                LoadEvent_ChangeShowedFunctionList(btnRoom,dialog,tempRoom.name);
                LoadEvent_ChangeShowedFunctionList(btnRoom, dialog, tempRoom.name);
                roomListView.AddChidren(new Button()
                {
@@ -367,7 +367,8 @@
                    BackgroundColor = CSS_Color.DividingLineColor,
                });
            }
            dialogBodyView.MouseUpEventHandler = (sender, e) => {
            dialogBodyView.MouseUpEventHandler = (sender, e) =>
            {
                dialog.Close();
            };