示例#1
0
        public void registerPatient(IPatientView patientView)
        {
            PatientPresenter patientPresenter = presenterFactory.getPatientPresenter(presenterFactory, repositoryFactory);

            patientPresenter.view        = patientView;
            patientView.patientPresenter = patientPresenter;
        }
        public PatientPresenter(IPatientView service, IPatientRepository repository)
        {
            _service = service;
            service.GridDataSource = this;
            _repository            = repository;

            GetAllPatients();
        }
示例#3
0
 public PatientPresenter(IPatientView patientView)
 {
     this.patientView         = patientView;
     patientModel             = new PatientModel();
     patientView.SearchClick += LoadSearchResultGrid;
     patientView.ClearClick  += LoadAllPatientGrids;
     patientView.LoadForm    += LoadAllPatientGrids;
 }
 public PatientPresenter(IPatientView view)
 {
     _patient_view = view;
     _patient_view.ShowPatients += () => ShowPatients(_patient_view.selected_diagnosis);
     _patient_view.Add          += () => ShowAdd();
     _patient_view.Change       += () => ShowChange();
     _patient_view.Delete       += () => Delete(_patient_view.passport);
 }
示例#5
0
 public PatientPresenter(IPatientView patientView)
 {
     this.patientView = patientView;
     patientModel = new PatientModel();
     patientView.SearchClick += LoadSearchResultGrid;
     patientView.ClearClick += LoadAllPatientGrids;
     patientView.LoadForm += LoadAllPatientGrids;
 }
示例#6
0
        public PatientPresenter(IKernel kernel, IPatientView view, IRepositoryService service)
        {
            _view    = view;
            _kernel  = kernel;
            _service = service;

            _view.ShowAddPatient  += ShowAddPatient;
            _view.ShowPatientInfo += ShowPatientInfo;
        }
        public PatientPresenter(IPatientModel model, IPatientView view)
        {
            try
            {
                this._model = model;
                this._view  = view;

                this._view.FormLoad += () => this.FormLoad();
            }
            catch (Exception ex)
            {
                this._view.ShowError(ex.ToString());
            }
        }
 public PatientPresenter(IPatientView service)
 {
     _service = service;
 }
示例#9
0
 public PatientViewPresenter(IPatientView patientView)
 {
     this.patientView = patientView;
     this.repository  = new PatientRepository();
     patientView.GetPatientButtonEnabled = false;
 }
示例#10
0
 public PatientPresenter(IPatientView param)
 {
     view = param;
 }
示例#11
0
 public PatientPresenter(IPatientRepository patientRepository, IPatientView patientView)
 {
     _repository = patientRepository;
     _view       = patientView;
 }