public FrmTagliaPresenter(IFrmTaglia view, BilancioService service, IScrittureFormView subViewSyncronyzer, ScritturePresenter subViewRefresher) { _view = view; _service = service; _subViewSyncronyzer = subViewSyncronyzer; _subViewRefresher = subViewRefresher; _view.SetPresenter(this); }
public ScritturePresenter(IScrittureFormView view, BilancioService service, string idConto) { _view = view; _view.SetPresenter(this); _service = service; _idConto = idConto; }
//usato per la funzione AddScrittura public ScritturaSingolaPresenter(IScritturaSingloaView view, BilancioService service, string idConto, IScrittureFormView subViewSyncronyzer) { _idConto = idConto; _service = service; _view = view; _view.SetPresenter(this); _subViewSyncronyzer = subViewSyncronyzer; _action = ContoActionType.New; }
//usato per la funzione ShowScrittura public ScritturaSingolaPresenter(IScritturaSingloaView view, BilancioService service, ScrittureDTO current, IScrittureFormView subViewSyncronyzer) { _idConto = current.ParentId; _current = current; _service = service; _view = view; _view.SetPresenter(this); _subViewSyncronyzer = subViewSyncronyzer; _action = ContoActionType.Modify; }
public void ScriviDettagliSaldoConto(IScrittureFormView view, string conto) { decimal initValue = 0; decimal total = this.CalculateTotalForSCritture(view.GridContainer.BoundList, conto, ref initValue); if (initValue == 0) { view.SetScrittureTotalizzation(total.ToString("c")); } else { string commento = ". Saldo iniziale conto: " + initValue.ToString("c"); view.SetScrittureTotalizzation(total.ToString("c") + commento); } }