Пример #1
0
 public async void GetRestoSandwichMenu()
 {
     try {
         RestoInfoList.Add(await restoSource.GetRestoSandwichMenu());
         OnPropertyChanged();
     } catch (DataSourceException ex) {
         await ErrorDialogFactory.NetworkErrorDialog().ShowAsync();
     }
 }
Пример #2
0
        public async void GetDailies()
        {
            try {
                Dailies = await schamperDailyFeed.GetDailies();

                OnPropertyChanged();
            } catch (DataSourceException ex) {
                await ErrorDialogFactory.NetworkErrorDialog().ShowAsync();
            }
        }
Пример #3
0
        public async void GetNewsArticles()
        {
            try {
                IEnumerable <NewsArticle> articles = await newsSource.GetArticles(DateTime.Today.AddYears(-1));

                foreach (NewsArticle article in articles)
                {
                    NewsArticles.Add(article);
                }
                OnPropertyChanged();
            } catch (DataSourceException ex) {
                await ErrorDialogFactory.NetworkErrorDialog().ShowAsync();
            }
        }
Пример #4
0
        public async void GetRestoMenus()
        {
            try {
                IEnumerable <DailyMenu> restoMenus = await restoSource.GetRestoMenus(4);

                foreach (var restoMenu in restoMenus)
                {
                    RestoInfoList.Add(restoMenu);
                }
                OnPropertyChanged();
            } catch (DataSourceException ex) {
                await ErrorDialogFactory.NetworkErrorDialog().ShowAsync();
            }
        }
        public async void GetActivities()
        {
            try {
                IEnumerable <EventDay> days = await activitySource.GetActivitiesByDate();

                foreach (EventDay day in days)
                {
                    EventDays.Add(day);
                }
                OnPropertyChanged();
            } catch (DataSourceException ex) {
                await ErrorDialogFactory.NetworkErrorDialog().ShowAsync();
            }
        }