Esempio n. 1
0
        public void UpdateRendicontoHeader()
        {
            IRendicontoHeaderView         v         = _view.RendicontoHeaderView;
            RendicontoHeaderFormPresenter presenter = new RendicontoHeaderFormPresenter(v, _service, ActionType.Update);

            v.SetPresenter(presenter);


            presenter.InitializeView();
            //a questo punto posso utilizzare il presenter per visualizzare il form
            if (presenter.StartDialog())
            {
                SetBilancioHeader(); //dopo che è stato effettuato tutto posso riaggiornare la vista
            }
        }
Esempio n. 2
0
 public RendicontoHeaderFormPresenter(IRendicontoHeaderView view, RendicontoService service, ActionType type)
 {
     _service = service;
     _type    = type;
     _view    = view;
 }