Example #1
0
        public void OtvoriNoviPostupak()
        {
            PostupakForm form      = new PostupakForm();
            var          presenter = new PostupakPresenter(form, new UnitOfWork());

            form.Show();
        }
        public PridruziZivotinjuPresenter(IPridruziZivotinjuView view, IUnitOfWork unit, PostupakPresenter presenter)
        {
            _view          = view;
            view.Presenter = this;
            _unit          = unit;
            _presenter     = presenter;

            UpdateVlasnikListView();
        }
Example #3
0
 public LijekoviPresenter(ILijekoviView view, IUnitOfWork unit, PostupakPresenter postupakPresenter = null)
 {
     _view              = view;
     view.Presenter     = this;
     _unit              = unit;
     _postupakPresenter = postupakPresenter;
     _view.Terapija     = postupakPresenter == null ? false : true;
     UpdateLijekoviListView();
 }
Example #4
0
 public BolestiPresenter(IBolestiView view, IUnitOfWork unitOfWork, PostupakPresenter postupakPresenter)
 {
     _view               = view;
     view.Presenter      = this;
     _unit               = unitOfWork;
     _presenterDijagnoza = postupakPresenter;
     _view.Dijagnoza     = postupakPresenter == null ? false : true;
     UpdateBolestiListView();
 }