public SearchCheeseViewModel (ContentPage page) { _dataService = DependencyService.Get<ICheeseDataService> (); Title = "Search Cheeses"; Cheeses = new ObservableCollection<Cheese> (); Page = page; }
public AddRatingViewModel(Cheese cheese, ContentPage page) { _dataService = DependencyService.Get <ICheeseDataService> (); MessagingCenter.Subscribe <AudioVideoViewModel, StorageCompleteMessage> ( this, AzureConstants.PhotoStorageComplete, (avvm, scm) => { RatingToAdd.PhotoUrl = scm.StorageUrl; }); MessagingCenter.Subscribe <AudioVideoViewModel, StorageCompleteMessage> ( this, AzureConstants.AudioStorageComplete, (avvm, scm) => { RatingToAdd.AudioUrl = scm.StorageUrl; }); RatingToAdd = new CheeseAndRating() { CheeseId = cheese.CheeseId, CheeseName = cheese.CheeseName, DairyName = cheese.DairyName }; Page = page; }
public SearchCheeseViewModel(ContentPage page) { _dataService = DependencyService.Get <ICheeseDataService> (); Title = "Search Cheeses"; Cheeses = new ObservableCollection <Cheese> (); Page = page; }
public AddCheeseAndRatingViewModel(ContentPage thePage) { _dataService = DependencyService.Get <ICheeseDataService> (); Title = "Add That Cheese!"; Page = thePage; CheeseToAdd = new CheeseAndRating(); }
public RatingDetailViewModel (CheeseAndRating rating, ContentPage page) { _dataService = DependencyService.Get<ICheeseDataService> (); Page = page; RatingDetails = rating; }
public RecentRatingsViewModel (ContentPage page) { _dataService = DependencyService.Get<ICheeseDataService> (); Title = "Cheesed!"; Page = page; RatingList = new ObservableCollection<CheeseAndRating> (); }
public RecentRatingsViewModel(ContentPage page) { _dataService = DependencyService.Get <ICheeseDataService> (); Title = "Cheesed!"; Page = page; RatingList = new ObservableCollection <CheeseAndRating> (); }
public RatingDetailViewModel(CheeseAndRating rating, ContentPage page) { _dataService = DependencyService.Get <ICheeseDataService> (); Page = page; RatingDetails = rating; }
public AddCheeseAndRatingViewModel (ContentPage thePage) { _dataService = DependencyService.Get<ICheeseDataService> (); Title = "Add That Cheese!"; Page = thePage; CheeseToAdd = new CheeseAndRating (); }
public AddRatingViewModel (Cheese cheese, ContentPage page) { _dataService = DependencyService.Get<ICheeseDataService> (); RatingToAdd = new CheeseAndRating () { CheeseId = cheese.CheeseId, CheeseName = cheese.CheeseName, DairyName = cheese.DairyName }; Page = page; }
public AddRatingViewModel(Cheese cheese, ContentPage page) { _dataService = DependencyService.Get <ICheeseDataService> (); RatingToAdd = new CheeseAndRating() { CheeseId = cheese.CheeseId, CheeseName = cheese.CheeseName, DairyName = cheese.DairyName }; Page = page; }
public AddRatingViewModel (Cheese cheese, ContentPage page) { _dataService = DependencyService.Get<ICheeseDataService> (); MessagingCenter.Subscribe<AudioVideoViewModel, StorageCompleteMessage> ( this, AzureConstants.PhotoStorageComplete, (avvm, scm) => { RatingToAdd.PhotoUrl = scm.StorageUrl; }); MessagingCenter.Subscribe<AudioVideoViewModel, StorageCompleteMessage> ( this, AzureConstants.AudioStorageComplete, (avvm, scm) => { RatingToAdd.AudioUrl = scm.StorageUrl; }); RatingToAdd = new CheeseAndRating () { CheeseId = cheese.CheeseId, CheeseName = cheese.CheeseName, DairyName = cheese.DairyName }; Page = page; }