public override void Handle(GetTherapyPlacesTypeListRequest request)
        {
            if (!IsRequestValid(request.SessionId, request.UserId))
            {
                return;
            }

            Socket.SendNetworkMsg(new GetTherapyPlacesTypeListResponse(dataCenter.GetAllTherapyPlaceTypesPlusDummy().ToList()));
        }
Beispiel #2
0
        private void OnSelectedPageStateChanged(MainPage mainPage)
        {
            if (mainPage == MainPage.Infrastructure)
            {
                AvailableTherapyPlaceTypes.Clear();

                dataCenter.GetAllTherapyPlaceTypesPlusDummy()
                .Select(placeType => new TherapyPlaceTypeDisplayData(placeType.Name,
                                                                     GetIconForTherapyPlaceType(placeType.IconType),
                                                                     placeType.Id))
                .Do(AvailableTherapyPlaceTypes.Add);

                MedicalPractices.Clear();

                dataCenter.GetAllMedicalPractices()
                .Select(practice => new MedPracticeDisplayData(practice.Name, practice.Id))
                .Do(MedicalPractices.Add);

                SelectedMedicalPractice = null;
            }
        }