Ejemplo n.º 1
0
 public void ActivateMolecule(IndividualMolecule molecule)
 {
     _transporter = molecule.DowncastTo <IndividualTransporter>();
     _view.HideWarning();
     _view.BindTo(_transporterExpressionDTOMapper.MapFrom(_transporter));
     _moleculePropertiesPresenter.Edit(molecule, SimulationSubject.DowncastTo <TSimulationSubject>());
 }
 protected virtual void Activate(TProtein protein)
 {
     clearReferences();
     _protein = protein;
     _proteinExpressionDTO = _proteinExpressionDTOMapper.MapFrom(protein);
     _view.BindTo(_proteinExpressionDTO);
     _moleculePropertiesPresenter.Edit(protein, SimulationSubject.DowncastTo <TSimulationSubject>());
     _protein.Changed += _updateViewHandler;
     updateView();
 }