public RenameMoleculeInPartialProcessCommand(PKSim.Core.Model.PartialProcess partialProcess, string newMoleculeName, IExecutionContext context) { _partialPocessId = partialProcess.Id; BuildingBlockId = context.BuildingBlockIdContaining(partialProcess); _newMoleculeName = newMoleculeName; _partialProcess = partialProcess; ObjectType = PKSimConstants.ObjectTypes.PartialProcess; CommandType = PKSimConstants.Command.CommandTypeEdit; context.UpdateBuildinBlockPropertiesInCommand(this, context.BuildingBlockContaining(partialProcess)); }
public PartialProcessDTO MapFrom(PKSim.Core.Model.PartialProcess partialProcess, PKSim.Core.Model.Compound compound) { return(new PartialProcessDTO(partialProcess) { MoleculeName = partialProcess.MoleculeName, DataSource = partialProcess.DataSource, Compound = compound, Species = partialProcess.Species }); }
public override void RestoreExecutionData(IExecutionContext context) { base.RestoreExecutionData(context); _partialProcess = context.Get <PKSim.Core.Model.PartialProcess>(_partialPocessId); }
protected override void ClearReferences() { _partialProcess = null; }
protected override void Context() { base.Context(); _link = new EnzymaticProcess().WithName("Tralala"); }
public void UpdateProperties(PKSim.Core.Model.PartialProcess partialProcess, PartialProcessDTO partialProcessDTO) { partialProcess.Name = partialProcessDTO.Name; partialProcess.DataSource = partialProcessDTO.DataSource; partialProcess.MoleculeName = partialProcessDTO.MoleculeName; }