Exemplo n.º 1
0
        protected override void Rebind(TPartialProcess partialProcess, Compound compound)
        {
            var oldProteinName = _partialProcessDTO.MoleculeName;
            var oldDataSource  = _partialProcessDTO.DataSource;

            _partialProcessDTO = _partialProcessMapper.MapFrom(partialProcess, compound);
            _partialProcessDTO.MoleculeName = oldProteinName;
            _partialProcessDTO.DataSource   = oldDataSource;
            BindToView();
        }
Exemplo n.º 2
0
        protected override void Rebind(TPartialProcess partialProcess, PKSim.Core.Model.Compound compound)
        {
            var oldProteinName = _partialProcessDTO.MoleculeName;
            var oldDataSource  = _partialProcessDTO.DataSource;

            _partialProcessDTO = _partialProcessMapper.MapFrom(partialProcess, compound);
            _partialProcessDTO.MoleculeName = oldProteinName;
            _partialProcessDTO.DataSource   = oldDataSource;
            _view.BindTo(_partialProcessDTO);
        }
Exemplo n.º 3
0
        protected override ObjectBaseDTO CreateDTOFor(CompoundProcess process)
        {
            if (process.IsAnImplementationOf <PartialProcess>())
            {
                _compoundProcessDTO = _partialProcessDTOMapper.MapFrom(process.DowncastTo <PartialProcess>(), process.ParentCompound);
            }
            else
            {
                _compoundProcessDTO = _systemicProcessDTOMapper.MapFrom(process.DowncastTo <SystemicProcess>(), process.ParentCompound);
            }

            return(_compoundProcessDTO);
        }