diff --git a/Wasted/App.xaml b/Wasted/App.xaml index 29ff521..d7a6f45 100644 --- a/Wasted/App.xaml +++ b/Wasted/App.xaml @@ -105,7 +105,7 @@ - + diff --git a/Wasted/Dummy API/HashMaps.cs b/Wasted/Dummy API/HashMaps.cs index 3ea42c3..6834083 100644 --- a/Wasted/Dummy API/HashMaps.cs +++ b/Wasted/Dummy API/HashMaps.cs @@ -25,10 +25,10 @@ public static Dictionary FoodPlacesHashMap } /// - /// Adds restaurants from which deals came from by using hashmaps. + /// Adds food places from which deals came from by using hashmaps. /// !!! Deals must be created before for this function to work /// - public static void AddRestaurantsToDeals(List AllFoodPlaces) + public static void AddFoodPlacesToDeals(List AllFoodPlaces) { foreach (FoodPlace foodPlace in AllFoodPlaces) { diff --git a/Wasted/HomePage.xaml b/Wasted/HomePage.xaml index 644b0c1..8a50db9 100644 --- a/Wasted/HomePage.xaml +++ b/Wasted/HomePage.xaml @@ -7,13 +7,13 @@ - + - + - + @@ -41,13 +41,13 @@ - + - + - + diff --git a/Wasted/HomePage.xaml.cs b/Wasted/HomePage.xaml.cs index 83921d7..245a111 100644 --- a/Wasted/HomePage.xaml.cs +++ b/Wasted/HomePage.xaml.cs @@ -25,32 +25,32 @@ public HomePage() } /// - /// Puts restaurants from json file to collectionView. + /// Puts food places from json file to collectionView. /// protected override void OnAppearing() { base.OnAppearing(); AllFoodPlaces = new List(DummyDataProvider.GetFoodPlacesList()); AllDeals = new List(DummyDataProvider.GetDealsList()); - HashMaps.AddRestaurantsToDeals(AllFoodPlaces); + HashMaps.AddFoodPlacesToDeals(AllFoodPlaces); - nearbyRestaurantsCollectionView.ItemsSource = AllFoodPlaces; + nearbyFoodPlacesCollectionView.ItemsSource = AllFoodPlaces; specialOffersCollectionView.ItemsSource = AllDeals; - popularRestaurantsCollectionView.ItemsSource = AllFoodPlaces; + popularFoodPlacesCollectionView.ItemsSource = AllFoodPlaces; } /// - /// Function is called when user selects food place from nearby restaurants collectionView. Called from xaml file. + /// Function is called when user selects food place from nearby food places collectionView. Called from xaml file. /// - void RestaurantsCollectionViewListSelectionChanged(object sender, SelectionChangedEventArgs e) + void FoodPlacesCollectionViewListSelectionChanged(object sender, SelectionChangedEventArgs e) { FoodPlace selectedPlace = e.CurrentSelection.FirstOrDefault() as FoodPlace; Navigation.PushAsync(new FoodPlacesPage(selectedPlace)); } /// - /// Function is called when user selects deal from nearby restaurants collectionView. Called from xaml file. + /// Function is called when user selects deal from nearby food places collectionView. Called from xaml file. /// void DealsCollectionViewListSelectionChanged(object sender, SelectionChangedEventArgs e) { diff --git a/Wasted/SearchPage.xaml.cs b/Wasted/SearchPage.xaml.cs index 17a017a..1ce0f21 100644 --- a/Wasted/SearchPage.xaml.cs +++ b/Wasted/SearchPage.xaml.cs @@ -23,14 +23,14 @@ public SearchPage() } /// - /// Puts restaurants from json file to collectionView. + /// Puts food places from json file to collectionView. /// protected override void OnAppearing() { base.OnAppearing(); AllFoodPlaces = new List(DummyDataProvider.GetFoodPlacesList()); DummyDataProvider.GetDealsList(); //Adds deals to hashmap. - HashMaps.AddRestaurantsToDeals(AllFoodPlaces); + HashMaps.AddFoodPlacesToDeals(AllFoodPlaces); allPlacesCollectionView.ItemsSource = AllFoodPlaces; }