Exemplo n.º 1
0
        public void OtvoriNoviPostupak()
        {
            PostupakForm form      = new PostupakForm();
            var          presenter = new PostupakPresenter(form, new UnitOfWork());

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

            UpdateVlasnikListView();
        }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }