wei
2021-01-11 b271bcceb1c4e718377ca86b6213816abcf7482a
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs
@@ -80,6 +80,7 @@
        /// </summary>
        void LoadEvent_ShowChangeRoomDialog()
        {
            btnChoosedRoom.MouseUpEventHandler = (sender, e) =>
            {
                LoadPage_LoadChooseRoomDialog();
@@ -95,28 +96,28 @@
        /// 根据选中的房间改变显示的功能列表
        /// </summary>
        /// <param name="btn"></param>
        void LoadEvent_ChangeShowedFunctionList(Button btn,Dialog dialog,string chooseRoomName)
        {
            btn.MouseUpEventHandler = (sender, e) => {
                if (lastButton != null)
                {
                    lastButton.IsSelected = false;
                }
                btn.IsSelected = true;
                //showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString();
                showedFunctionRoomId = btn.Tag.ToString();
                if (showedFunctionRoomId == "0")
                {
                    LoadFunctionListRow(allocatedList);
                }
                else
                {
                    LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIds.Contains(showedFunctionRoomId)));
                }
                btnChoosedRoom.Text = chooseRoomName;
                dialog.Close();
            };
        }
        //void LoadEvent_ChangeShowedFunctionList(Button btn,Dialog dialog,string chooseRoomName)
        //{
        //    btn.MouseUpEventHandler = (sender, e) => {
        //        if (lastButton != null)
        //        {
        //            lastButton.IsSelected = false;
        //        }
        //        btn.IsSelected = true;
        //        //showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString();
        //        showedFunctionRoomId = btn.Tag.ToString();
        //        if (showedFunctionRoomId == "0")
        //        {
        //            LoadFunctionListRow(allocatedList);
        //        }
        //        else
        //        {
        //            LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIds.Contains(showedFunctionRoomId)));
        //        }
        //        btnChoosedRoom.Text = chooseRoomName;
        //        dialog.Close();
        //    };
        //}
        /// <summary>
        /// 保存房间修改的数据