示例#1
0
 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
     });
 }
示例#3
0
 public override void RestoreExecutionData(IExecutionContext context)
 {
     base.RestoreExecutionData(context);
     _partialProcess = context.Get <PKSim.Core.Model.PartialProcess>(_partialPocessId);
 }
示例#4
0
 protected override void ClearReferences()
 {
     _partialProcess = null;
 }
示例#5
0
 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;
 }