예제 #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 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();
            }
        }