コード例 #1
0
 protected override void CleanUp()
 {
     viewModelCommunication.DeregisterViewModelAtCollection <TimeGridViewModel, AggregateIdentifier>(
         Constants.ViewModelCollections.TimeGridViewModelCollection,
         this
         );
 }
コード例 #2
0
        protected override void CleanUp()
        {
            viewModelCommunication.DeregisterViewModelAtCollection <TherapyPlaceRowViewModel, TherapyPlaceRowIdentifier>(
                Constants.ViewModelCollections.TherapyPlaceRowViewModelCollection,
                this
                );

            appointmentModificationsVariable.StateChanged -= OnAppointmentModificationsChanged;
            therapyPlaceTypeRepository.UpdatedTherapyPlaceTypeAvailable -= OnUpdatedTherapyPlaceTypeAvailable;
        }
コード例 #3
0
        protected override void CleanUp()
        {
            appointmentGridSizeVariable.StateChanged -= OnGridSizeChanged;

            viewModelCommunication.DeregisterViewModelAtCollection <IAppointmentGridViewModel, AggregateIdentifier>(
                Constants.ViewModelCollections.AppointmentGridViewModelCollection,
                this
                );

            viewModelCommunication.SendTo(
                Constants.ViewModelCollections.TimeGridViewModelCollection,
                Identifier,
                new Dispose()
                );
        }
コード例 #4
0
        protected override void CleanUp()
        {
            gridSizeVariable.StateChanged   -= OnGridSizeChanged;
            roomFilterVariable.StateChanged -= OnGlobalRoomFilterVariableChanged;
            readModel.AppointmentChanged    -= OnReadModelAppointmentChanged;

            viewModelCommunication.DeregisterViewModelAtCollection <IAppointmentGridViewModel, AggregateIdentifier>(
                Constants.ViewModelCollections.AppointmentGridViewModelCollection,
                this
                );

            viewModelCommunication.SendTo(
                Constants.ViewModelCollections.TimeGridViewModelCollection,
                Identifier,
                new Dispose()
                );

            readModel.Appointments
            .Do(RemoveAppointment);

            readModel.Dispose();

            TherapyPlaceRowViewModels.Do(viewModel => viewModel.Dispose());
        }