protected AddPartnerToReactionCommand(IMoBiReactionBuildingBlock reactionBuildingBlock, T reactionPartnerBuilder, IReactionBuilder reactionBuilder, Func <IReactionBuilder, Action <T> > addMethod) : base(reactionBuildingBlock, reactionPartnerBuilder, reactionBuilder, addMethod) { }
public AddItemToModifierCollectionCommand(IMoBiReactionBuildingBlock reactionBuildingBlock, string modifier, IReactionBuilder reactionBuilder) : base(reactionBuildingBlock, modifier, reactionBuilder, x => x.AddModifier) { ObjectType = ObjectTypes.Modifier; }
protected AddItemToReactionCommand(IMoBiReactionBuildingBlock reactionBuildingBlock, T itemToAdd, IReactionBuilder reactionBuilder, Func <IReactionBuilder, Action <T> > addMethod) : base(reactionBuilder, itemToAdd, reactionBuildingBlock) { _addMethod = addMethod; _moleculeName = MoleculeNameFrom(_itemToAdd); }
public EditReactionPartnerMoleculeNameCommand(string newMoleculeName, IReactionBuilder reaction, IReactionPartnerBuilder reactionPartner, IMoBiReactionBuildingBlock buildingBlock) : base(reaction, reactionPartner, buildingBlock) { _newMoleculeName = newMoleculeName; Description = AppConstants.Commands.EditDescription(ObjectType, _isEduct ? ObjectTypes.Educt : ObjectTypes.Product, _reactionPartner.MoleculeName, newMoleculeName, _reaction.Name); }
public AddReactionPartnerToProductCollection(IMoBiReactionBuildingBlock reactionBuildingBlock, IReactionPartnerBuilder reactionPartnerBuilder, IReactionBuilder reactionBuilder) : base(reactionBuildingBlock, reactionPartnerBuilder, reactionBuilder, x => x.AddProduct) { ObjectType = ObjectTypes.Product; }
public void Visit(IMoBiReactionBuildingBlock objToVisit) { retrieveTask(objToVisit); }
public EditReactionPartnerStoichiometricCoefficientCommand(double newCoefficient, IReactionBuilder reaction, IReactionPartnerBuilder reactionPartner, IMoBiReactionBuildingBlock buildingBlock) : base(reaction, reactionPartner, buildingBlock) { _newCoefficient = newCoefficient; _oldCoefficient = reactionPartner.StoichiometricCoefficient; _moleculeName = reactionPartner.MoleculeName; Description = AppConstants.Commands.EditStochiometricCoefficient(newCoefficient, _reactionPartner.StoichiometricCoefficient, _reaction.Name, _moleculeName, _isEduct ? ObjectTypes.Educt : ObjectTypes.Product); }
protected override IMoBiCommand RemoveCommandFor(IMoBiReactionBuildingBlock reactionBuildingBlock) { return(new RemoveItemFromModifierCollectionCommand(_builder, _partnerBuilder, reactionBuildingBlock)); }
protected override IMoBiCommand RemoveCommandFor(IMoBiReactionBuildingBlock reactionBuildingBlock) { return(new RemoveReactionPartnerFromProductCollection(_builder, _partnerBuilder, reactionBuildingBlock)); }
protected abstract IMoBiCommand RemoveCommandFor(IMoBiReactionBuildingBlock reactionBuildingBlock);
protected RemovePartnerFromReactionCommand(IReactionBuilder reactionBuilder, IReactionPartnerBuilder itemToRemove, IMoBiReactionBuildingBlock reactionBuildingBlock, Func <IReactionBuilder, Action <IReactionPartnerBuilder> > removeMethod) : base(reactionBuilder, itemToRemove, reactionBuildingBlock, removeMethod) { }
protected RemoveItemFromReactionCommand(IReactionBuilder reactionBuilder, T itemToRemove, IMoBiReactionBuildingBlock reactionBuildingBlock, Func <IReactionBuilder, Action <T> > removeMethod) : base(reactionBuilder, itemToRemove, reactionBuildingBlock) { _removeMethod = removeMethod; _reaction = reactionBuilder; _moleculeName = MoleculeNameFrom(itemToRemove); }
public RemoveItemFromModifierCollectionCommand(IReactionBuilder reactionBuilder, string modififer, IMoBiReactionBuildingBlock reactionBuildingBlock) : base(reactionBuilder, modififer, reactionBuildingBlock, x => x.RemoveModifier) { ObjectType = ObjectTypes.Modifier; }
public RemoveReactionPartnerFromProductCollection(IReactionBuilder reactionBuilder, IReactionPartnerBuilder reactionPartnerBuilder, IMoBiReactionBuildingBlock reactionBuildingBlock) : base(reactionBuilder, reactionPartnerBuilder, reactionBuildingBlock, x => x.RemoveProduct) { ObjectType = ObjectTypes.Product; }