コード例 #1
0
 public SpeakerPageViewModel(ITimeslots timeslots, INavigationService navigationService)
 {
     _timeslots         = timeslots;
     _navigationService = navigationService;
     Title        = "Sprecher";
     Timeslots    = new ObservableCollection <Timeslot>();
     ShowTimeslot = new DelegateCommand <Timeslot>(ShowTimeslotExecute);
 }
コード例 #2
0
        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;
        }