Beispiel #1
0
 public InspectionVM(Inspectie inspectie)
 {
     _UOW               = ViewModelLocator.UOW;
     _inspection        = inspectie;
     _location          = new LocationVM(_UOW.InspectionLocations.Get(Location_ID));
     _customer          = new CustomerVM(_UOW.Customers.Get(Customer_ID));
     ChosenCertificates = new ObservableCollection <CertificateVM>(_UOW.Inspections.GetCertificatesByInspection(Inspection_ID).Select(cert => new CertificateVM(cert)));
 }
Beispiel #2
0
 public InspectionVM()
 {
     _inspection        = new Inspectie();
     _location          = new LocationVM();
     _customer          = new CustomerVM();
     ChosenCertificates = new ObservableCollection <CertificateVM>();
     StartDate          = DateTime.Now.Date;
     EndDate            = DateTime.Now.Date.AddDays(1);
 }