public ZeitBuchungsListeViewModel(IEventAggregator eventAggregator, IZeitBuchungRepository zeitbuchungRepository)
        {
            _dispatcher            = Dispatcher.CurrentDispatcher;
            _zeitbuchungRepository = zeitbuchungRepository;
            eventAggregator.GetEvent <ReloadDataEvent>().Subscribe(ReloadZeitBuchungen);

            ZeitBuchungen = new ObservableCollection <ZeitBuchungsViewModel>(zeitbuchungRepository.GetAll().Select(x => new ZeitBuchungsViewModel(x)));
        }
Beispiel #2
0
 public SchichtPlaner(ISchichtRepository schichtRepository, IchFindePersonal personalFinder, IZeitBuchungRepository zeitBuchungen)
 {
     _schichtRepository = schichtRepository;
     _personalFinder    = personalFinder;
     _zeitBuchungen     = zeitBuchungen;
 }
Beispiel #3
0
 public PersonalFinder(IPersonRepository personRepository, IZeitBuchungRepository zeitBuchungen)
 {
     _personRepository = personRepository;
     _zeitBuchungen    = zeitBuchungen;
 }