Ejemplo n.º 1
0
        public MainViewModel()
        {
            _eventsBus = new EventsBus();
            _eventsBus.On <DetailsPageRequested>(DisplayDetailsPage);
            _eventsBus.On <DuringThisTimeRequired>(DisplayDuringThisTimePage);

            var talksViewModel = new TalksViewModel(_eventsBus);

            talksViewModel.InitializeAsync();
            MainPage = talksViewModel;

            DisplayTalks();
        }