public DiseaseBrowseViewModel(AmbulanceDomainContext context, IServiceLocator serviceLocator)
        {
            _serviceLocator = serviceLocator;
            _context = context;

            Diseases = new RiaPagedCollectionView<Ochorenia>(_context.Ochorenias);
            Diseases.PageChanged += (sender, args) => { this.GetDiseases(); };            
        }
        public MedicalBrowseViewModel(AmbulanceDomainContext context, IServiceLocator serviceLocator)
        {
            _serviceLocator = serviceLocator;
            _context = context;

            Medicals = new RiaPagedCollectionView<Vysetrenie>(_context.Vysetrenies);
            Medicals.PageChanged += (sender, args) => { this.GetMedicals(); };            
        }
        public PatientsBrowseViewModel(AmbulanceDomainContext context, IServiceLocator serviceLocator)
        {
            _serviceLocator = serviceLocator;
            _context = context;
            FilterCollection = new FilterPo();
            Patients = new RiaPagedCollectionView<NIS.Module.Ambulance.Server.Model.IdentifikacneUdaje>(_context.IdentifikacneUdajes);
            Patients.PageChanged += (sender, args) => { this.GetPatients(); };

        }
 public PatientMedicalDetailViewModel(AmbulanceDomainContext AmbulanceDomainContext, IServiceLocator servisLocator)
 {
     _IsEnableMode = false;
     _serviceLocator = servisLocator;
     _context = AmbulanceDomainContext;
     MedicalDetail = new MedicalPo();
     DiseasesPo = new BindableCollection<DiseasePo>();
     Disease = new BindableCollection<VysetrenieMaOchorenie>();
     MedicalHaveDisease = new RiaPagedCollectionView<VysetrenieMaOchorenie>(_context.VysetrenieMaOchorenies);
     MedicalHaveDisease.PageChanged += (sender, args) => { this.GetDisease(); };
 }
 public AddNewPatientViewModel(AmbulanceDomainContext context, IServiceLocator serviceLocator)
 {
     _serviceLocator = serviceLocator;
     _patientDomainContext = context;
     NewPatient = new AddPatientPo();
     Regions = new BindableCollection<Cis_Kraj>();
     District = new BindableCollection<Cis_Okres>();
     City = new BindableCollection<Cis_Obec>();
     AddressRegions = new BindableCollection<Cis_Kraj>();
     AddressDistrict = new BindableCollection<Cis_Okres>();
     AddressCity = new BindableCollection<Cis_Obec>();
     DisplayName = "Práva na UI";
     Sex = new BindableCollection<string>();
     CityId = null;
 }
 public PatientTreatmentDetailViewModel(AmbulanceDomainContext AmbulanceDomainContext, IServiceLocator servisLocator)
 {
     _IsEnableMode = false;
     _serviceLocator = servisLocator;
     _context = AmbulanceDomainContext;
 }