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)); }
public override void RestoreExecutionData(IExecutionContext context) { base.RestoreExecutionData(context); _protein = context.Get <PKSim.Core.Model.IndividualProtein>(_proteinId); }
protected override void ClearReferences() { _protein = null; }