protected override void CleanUp() { viewModelCommunication.DeregisterViewModelAtCollection <TimeGridViewModel, AggregateIdentifier>( Constants.ViewModelCollections.TimeGridViewModelCollection, this ); }
protected override void CleanUp() { viewModelCommunication.DeregisterViewModelAtCollection <TherapyPlaceRowViewModel, TherapyPlaceRowIdentifier>( Constants.ViewModelCollections.TherapyPlaceRowViewModelCollection, this ); appointmentModificationsVariable.StateChanged -= OnAppointmentModificationsChanged; therapyPlaceTypeRepository.UpdatedTherapyPlaceTypeAvailable -= OnUpdatedTherapyPlaceTypeAvailable; }
protected override void CleanUp() { appointmentGridSizeVariable.StateChanged -= OnGridSizeChanged; viewModelCommunication.DeregisterViewModelAtCollection <IAppointmentGridViewModel, AggregateIdentifier>( Constants.ViewModelCollections.AppointmentGridViewModelCollection, this ); viewModelCommunication.SendTo( Constants.ViewModelCollections.TimeGridViewModelCollection, Identifier, new Dispose() ); }
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()); }