public void UpdateHistory() { //We display the history in the reversed chronological order var reversedHistory = HistoryManager.History.Reverse(); var allhistoryItemsDTO = reversedHistory.MapAllUsing(_mapper).Where(dto => !dto.IsAnImplementationOf <NullHistoryItemDTO>()); _historyItemDtoList = _historyItemDTOListMapper.MapFrom(allhistoryItemsDTO); View.BindTo(_historyItemDtoList); }
public HistoryBrowserPresenter(IHistoryBrowserView view, ILabelTask labelTask, ICommentTask commentTask, IHistoryToHistoryDTOMapper mapper, IHistoryItemDTOEnumerableToHistoryItemDTOList historyItemDTOListMapper) { View = view; _labelTask = labelTask; _commentTask = commentTask; _mapper = mapper; _historyItemDTOListMapper = historyItemDTOListMapper; EnableFiltering = true; EnableAutoFilterRow = true; EnableHistoryPruning = true; _historyItemDtoList = historyItemDTOListMapper.MapFrom(Enumerable.Empty <IHistoryItemDTO>()); }