protected override void ExecuteWith(IMoBiContext context)
 {
     base.ExecuteWith(context);
     _oldValueOrigin = _quantity.ValueOrigin.Clone();
     _quantity.ValueOrigin.UpdateFrom(_valueOrigin);
     Description = AppConstants.Commands.UpdateQuantityValueOriginInSimulation(_quantity.EntityPath(), _oldValueOrigin.ToString(), _valueOrigin.ToString(), ObjectType, _buildingBlock.Name);
 }
 protected override void ExecuteWith(IMoBiContext context)
 {
     base.ExecuteWith(context);
     _oldValueOrigin = _startValue.ValueOrigin.Clone();
     _startValue.UpdateValueOriginFrom(_newValueOrigin);
     Description = AppConstants.Commands.UpdateStartValueValueOrigin(_startValue.Path.PathAsString, _oldValueOrigin.ToString(), _newValueOrigin.ToString(), ObjectType, _buildingBlock.Name);
 }
Esempio n. 3
0
 protected override void ExecuteUpdateParameter(IExecutionContext context)
 {
     _oldValueOrigin = _parameter.ValueOrigin.Clone();
     UpdateParameter(context);
     Description = Command.UpdateValueOriginFrom(_oldValueOrigin.ToString(), _valueOrigin.ToString(), ObjectType, context.DisplayNameFor(_parameter), BuildingBlockType, BuildingBlockName);
 }