protected override void EditProcess(SystemicProcess systemicProcess, Compound compound) { _view.ApplicationIcon = ApplicationIcons.IconByName(systemicProcess.SystemicProcessType.IconName); _view.Caption = PKSimConstants.UI.CreateSystemicProcess(systemicProcess.SystemicProcessType.DisplayName); _systemicProcessDTO = _systemicProcessDTOMapper.MapFrom(systemicProcess, compound); _view.BindTo(_systemicProcessDTO); }
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); }