public PageControlContract(int polyclinicId, int specializationId, IDoctorDataService doctorDataService, IProfileDataService profileDataService) { this.PolyclinicId = polyclinicId; this.SpecializationId = specializationId; this.DoctorDataService = doctorDataService; this.ProfileDataService = profileDataService; }
public DoctorViewModel( int doctorId, object parentViewModel, IDoctorDataService doctorDataService, IProfileDataService profileDataService, IEventAggregator eventAggregator) { this.DoctorId = doctorId; this.DoctorDataService = doctorDataService; this.ProfileDataService = profileDataService; this.EventAggregator = eventAggregator; this.LoadedCommand = AsyncCommand.Create(this.OnLoadedAsync); this.BackCommand = new RelayCommand( () => this.EventAggregator.GetEvent <NavigationEvent>().Publish(parentViewModel)); }
public SpecializationDoctorsViewModel( int polyclinicId, int specializationId, object parentViewModel, IMedicalSpecializationDataService specializationDataService, IPolyclinicDataService polyclinicDataService, IDoctorDataService doctorDataService, IProfileDataService profileDataService, IEventAggregator eventAggregator) { this.PolyclinicId = polyclinicId; this.SpecializationId = specializationId; this.SpecializationDataService = specializationDataService; this.PolyclinicDataService = polyclinicDataService; this.DoctorDataService = doctorDataService; this.ProfileDataService = profileDataService; this.EventAggregator = eventAggregator; this.PageContract = new PageControlContract( this.PolyclinicId, this.SpecializationId, this.DoctorDataService, this.ProfileDataService); this.PageSizes = new ObservableCollection <int> { 2, 10, 20, 50, 100, 200 }; this.LoadedCommand = AsyncCommand.Create(this.OnLoadedAsync); this.OpenDoctorCommand = new RelayCommand <int>( doctorId => this.EventAggregator.GetEvent <OpenDoctorTimetableEvent>().Publish( new OpenDoctorTimetableEventArgs { DoctorId = doctorId, ParentViewModel = this })); this.BackCommand = new RelayCommand( () => this.EventAggregator.GetEvent <NavigationEvent>().Publish(parentViewModel)); }
public DoctorController() { doctorService = new DoctorDataService(); mainDataservice = new MainDataService(); this.connectionString = ConfigurationManager.ConnectionStrings[ConfigurationManager.AppSettings["activeConnection"]].ConnectionString; }
public DoctorUI(IDoctorDataService doctorDataService) { _doctorDataService = doctorDataService; }