Пример #1
0
 public SetProteinMembraneLocationCommand(PKSim.Core.Model.IndividualProtein protein, MembraneLocation membraneLocation, IExecutionContext context)
 {
     _protein             = protein;
     BuildingBlockId      = context.BuildingBlockIdContaining(protein);
     _newMembraneLocation = membraneLocation;
     ObjectType           = PKSimConstants.ObjectTypes.Protein;
     CommandType          = PKSimConstants.Command.CommandTypeEdit;
     _proteinId           = _protein.Id;
     context.UpdateBuildinBlockPropertiesInCommand(this, context.BuildingBlockContaining(_protein));
 }
Пример #2
0
 public override void RestoreExecutionData(IExecutionContext context)
 {
     base.RestoreExecutionData(context);
     _protein = context.Get <PKSim.Core.Model.IndividualProtein>(_proteinId);
 }
Пример #3
0
 protected override void ClearReferences()
 {
     _protein = null;
 }