Ejemplo n.º 1
0
        private void UpdateTherapyPlace(TherapyPlace updatedTherapyPlace)
        {
            var placeListItem = TherapyPlaces.First(listItem => listItem.PlaceId == updatedTherapyPlace.Id);
            var placeType     = dataCenter.GetTherapyPlaceType(updatedTherapyPlace.TypeId);

            placeListItem.Name     = updatedTherapyPlace.Name;
            placeListItem.TypeIcon = GetIconForTherapyPlaceType(placeType.IconType);
            placeListItem.TypeName = placeType.Name;

            SelectedTherapyPlaceObject = updatedTherapyPlace;

            var updatedRoom = SelectedRoomObject.UpdateTherapyPlace(updatedTherapyPlace);

            UpdateRoom(updatedRoom);
        }