コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
 }