Esempio n. 1
0
        protected SelectReferencePresenterBase(ISelectReferenceView view,
                                               IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                               IMoBiContext context,
                                               IUserSettings userSettings,
                                               IObjectBaseToDummyMoleculeDTOMapper objectBaseToDummyMoleculeDTOMapper,
                                               IParameterToDummyParameterDTOMapper dummyParameterDTOMapper,
                                               IObjectBaseDTOToReferenceNodeMapper referenceMapper,
                                               IObjectPathCreator objectPathCreator,
                                               Localisations localisation)
            : base(view)
        {
            _objectPathCreator       = objectPathCreator;
            _localisation            = localisation;
            _dummyParameterDTOMapper = dummyParameterDTOMapper;
            _referenceMapper         = referenceMapper;
            _dummyMoleculeDTOMapper  = objectBaseToDummyMoleculeDTOMapper;
            _userSettings            = userSettings;
            _context             = context;
            _objectBaseDTOMapper = objectBaseDTOMapper;
            _objectPathFactory   = _context.ObjectPathFactory;
            _view.ObjectPathType = _userSettings.ObjectPathType;

            _referenceMapper.Initialize(GetChildObjects);

            SelectionPredicate = parameter => true;
        }
 public void Show(IEnumerable <SpatialStructureDTO> dtoSpatialStructures)
 {
     _nodeMapper.Initialize(x => _presenter.GetChildObjects(x.Id));
     foreach (var dtoSpatialStructure in dtoSpatialStructures)
     {
         var spatialStructureNode = getSpatialStructureNode(dtoSpatialStructure);
         AddNode(spatialStructureNode);
     }
 }