Пример #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 SelectLocalisationView(IObjectBaseDTOToReferenceNodeMapper nodeMapper, IImageListRetriever imageListRetriever)
 {
     _nodeMapper = nodeMapper;
     InitializeComponent();
     StateImageList        = imageListRetriever.AllImages16x16;
     NodeClick            += (args, node) => _presenter.ViewChanged();
     ShouldExpandAddedNode = false;
     UseLazyLoading        = true;
 }
Пример #3
0
 public SelectReferenceAtReactionParameterPresenter(ISelectReferenceView view,
                                                    IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                                    IMoBiContext context, IUserSettings userSettings,
                                                    IObjectBaseToDummyMoleculeDTOMapper objectBaseToMoleculeDummyMapper,
                                                    IParameterToDummyParameterDTOMapper dummyParameterDTOMapper,
                                                    IObjectBaseDTOToReferenceNodeMapper referenceMapper,
                                                    IObjectPathCreatorAtReactionParameter objectPathCreator)
     : base(view, objectBaseDTOMapper, context, userSettings, objectBaseToMoleculeDummyMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreator)
 {
 }
Пример #4
0
 public SelectReferenceAtEventPresenter(ISelectReferenceView view,
                                        IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                        IMoBiContext context,
                                        IUserSettings userSettings,
                                        IObjectBaseToDummyMoleculeDTOMapper objectBaseToMoleculeDummyDTOMapper,
                                        IParameterToDummyParameterDTOMapper dummyParameterDTOMapper,
                                        IObjectBaseDTOToReferenceNodeMapper referenceMapper,
                                        IObjectPathCreatorAtEvent objectPathCreator)
     : base(view, objectBaseDTOMapper, context, userSettings,
            objectBaseToMoleculeDummyDTOMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreator, Localisations.ContainerOnly)
 {
 }
Пример #5
0
 protected override void Context()
 {
     _view                = A.Fake <ISelectReferenceView>();
     _context             = A.Fake <IMoBiContext>();
     _objectBaseDTOMapper = A.Fake <IObjectBaseToObjectBaseDTOMapper>();
     _moleculeMapper      = A.Fake <IObjectBaseToDummyMoleculeDTOMapper>();
     _parameterMapper     = A.Fake <IParameterToDummyParameterDTOMapper>();
     _userSettings        = A.Fake <IUserSettings>();
     _objectPathCreator   = A.Fake <IObjectPathCreatorAtParameter>();
     _referenceMapper     = A.Fake <IObjectBaseDTOToReferenceNodeMapper>();
     sut = new SelectReferenceAtParameterPresenter(_view, _objectBaseDTOMapper, _context, _userSettings,
                                                   _moleculeMapper, _parameterMapper, _referenceMapper,
                                                   _objectPathCreator);
 }
 public SelectReferenceAtTransportPresenter(ISelectReferenceView view, IObjectBaseToObjectBaseDTOMapper objectBaseDTOMapper,
                                            IMoBiContext context, IUserSettings userSettings, IObjectBaseToDummyMoleculeDTOMapper objectBaseToMoleculeDummyMapper,
                                            IParameterToDummyParameterDTOMapper dummyParameterDTOMapper, IObjectBaseDTOToReferenceNodeMapper referenceMapper,
                                            IObjectPathCreatorAtTransport objectPathCreatorAtTransport, ITransportMoleculeContainerToObjectBaseDTOMapper transporterMoleculeContainerMapper)
     : base(view, objectBaseDTOMapper, context, userSettings,
            objectBaseToMoleculeDummyMapper, dummyParameterDTOMapper, referenceMapper, objectPathCreatorAtTransport, Localisations.NeighborhoodsOnly)
 {
     _objectPathCreatorAtTransport       = objectPathCreatorAtTransport;
     _transporterMoleculeContainerMapper = transporterMoleculeContainerMapper;
 }