| | |
| | | lastButton.IsSelected = false; |
| | | } |
| | | btn.IsSelected = true; |
| | | showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString(); |
| | | LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIds.Contains(showedFunctionRoomId))); |
| | | //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(); |
| | | }; |