private void initializeFormulaPresenter(IReaction reaction) { _formulaPresenter = _formulaPresenterCache.PresenterFor(reaction.Formula); _formulaPresenter.InitializeWith(CommandCollector); _view.SetFormulaView(_formulaPresenter.BaseView); _formulaPresenter.ReadOnly = true; _formulaPresenter.Edit(reaction.Formula, reaction); }
private void initializeFormulaPresenter() { var formula = _quantityToEdit.Formula; _formulaPresenter = _formulaPresenterCache.PresenterFor(formula); _view.SetFormulaView(_formulaPresenter.BaseView); _formulaPresenter.ReadOnly = true; _formulaPresenter.InitializeWith(CommandCollector); _formulaPresenter.Edit(formula, _quantityToEdit); }
public void Select(IFormula formula) { if (formula == null) { return; } _editPresenter = _formulaPresenterCache.PresenterFor(formula); _editPresenter.BuildingBlock = _buildingBlock; _view.SetEditView(_editPresenter.BaseView); _editPresenter.InitializeWith(CommandCollector); _editPresenter.Edit(formula); }