Пример #1
0
        public IPKSimCommand Create()
        {
            _view.Display();

            if (_view.Canceled)
            {
                return(new PKSimEmptyCommand());
            }

            _propertiesMapper.MapProperties(_protocolPropertiesDTO, _protocol);
            return(_macroCommand);
        }
Пример #2
0
        public IPKSimCommand Create()
        {
            _observedBuildingBlockDTO = _buildingBlockDTOFactory.CreateFor <ObserverSet>();
            ObserverSet = _observerSetFactory.Create();
            _subPresenterItemManager.AllSubPresenters.Each(x => x.Edit(ObserverSet));
            _view.BindToProperties(_observedBuildingBlockDTO);
            _view.Display();

            if (_view.Canceled)
            {
                return(new PKSimEmptyCommand());
            }

            _propertiesMapper.MapProperties(_observedBuildingBlockDTO, ObserverSet);

            return(new PKSimMacroCommand());
        }
Пример #3
0
        public IPKSimCommand Create()
        {
            _eventPropertiesDTO = _objectBaseDTOFactory.CreateFor <PKSimEvent>();
            _view.BindToProperties(_eventPropertiesDTO);
            Event = _eventFactory.Create();
            eventSettingsPresenter.EditEvent(Event);
            _view.Display();

            if (_view.Canceled)
            {
                return(new PKSimEmptyCommand());
            }

            _propertiesMapper.MapProperties(_eventPropertiesDTO, Event);

            return(_macroCommand);
        }
Пример #4
0
        public IPKSimCommand CreateFormulation(string applicationRoute)
        {
            _formulationPropertiesDTO = _buildingBlockDTOFactory.CreateFor <Formulation>();
            _view.BindToProperties(_formulationPropertiesDTO);
            formulationSettingsPresenter.EditFormulationFor(applicationRoute);
            _view.Display();

            if (_view.Canceled)
            {
                return(new PKSimEmptyCommand());
            }

            formulationSettingsPresenter.SaveFormulation();
            _propertiesMapper.MapProperties(_formulationPropertiesDTO, Formulation);

            return(_macroCommand);
        }
Пример #5
0
 private void updateIndividualProperties()
 {
     _propertiesMapper.MapProperties(_scaleIndividualPropertiesDTO, Individual);
 }
 private void updatePopulationProperties()
 {
     _propertiesMapper.MapProperties(_populationPropertiesDTO, BuildingBlock);
 }
Пример #7
0
 protected override void UpdateSimulationProperties()
 {
     _simulationPropertiesMapper.MapProperties(_simulationPropertiesDTO, Simulation);
     SaveBuildingBlocksConfiguration();
     _simulationModelCreator.CreateModelFor(Simulation);
 }
Пример #8
0
 private void updateCompoundProperties()
 {
     _propertiesMapper.MapProperties(_compoundPropertieDTO, Compound);
 }