public PhysicianView() { InitializeComponent(); _physicianService = new PhysicianService(new MVCHContext()); _physicianListViewModel = new PhysicianListViewModel(_physicianService); _specialtyService = new SpecialtyService(new MVCHContext()); _facilityService = new FacilityService(new MVCHContext()); _physicianSpecialtyService = new PhysicianSpecialtyService(new MVCHContext()); _facilityPhysicianService = new FacilityPhysicianService(new MVCHContext()); DataContext = _physicianListViewModel; }
public AddPhysicianView(PhysicianListViewModel physicianListViewModel, PhysicianService physicianService, PhysicianSpecialtyService physicianSpecialtyService, SpecialtyService specialtyService, FacilityService facilityService, FacilityPhysicianService facilityPhysicianService) { InitializeComponent(); _toAddPhysician = new AddPhysicianViewModel(physicianListViewModel, physicianService, facilityService, specialtyService, physicianSpecialtyService, facilityPhysicianService); DataContext = _toAddPhysician; }