public SpeakerPageViewModel(ITimeslots timeslots, INavigationService navigationService) { _timeslots = timeslots; _navigationService = navigationService; Title = "Sprecher"; Timeslots = new ObservableCollection <Timeslot>(); ShowTimeslot = new DelegateCommand <Timeslot>(ShowTimeslotExecute); }
public TimeslotsPageViewModel(ITimeslots timeslots, ISpeakers speakers, INavigationService navigationService) { _timeslots = timeslots; _speakers = speakers; _navigationService = navigationService; Title = "Programm"; Timeslots = new ObservableCollection <Grouping <string, Timeslot> >(); ShowTimeslot = new DelegateCommand <Timeslot>(ShowTimeslotExecute); PropertyChanged += OnPropertyChanged; }