Пример #1
0
        public void OtvoriNoviPostupak()
        {
            PostupakForm form      = new PostupakForm();
            var          presenter = new PostupakPresenter(form, new UnitOfWork());

            form.Show();
        }
Пример #2
0
        public PridruziZivotinjuPresenter(IPridruziZivotinjuView view, IUnitOfWork unit, PostupakPresenter presenter)
        {
            _view          = view;
            view.Presenter = this;
            _unit          = unit;
            _presenter     = presenter;

            UpdateVlasnikListView();
        }
Пример #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();
 }
Пример #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();
 }