Ejemplo n.º 1
0
 public RatingsViewModel(Game game, IDataService dataService) : base(dataService)
 {
     _dataService        = dataService;
     Game                = game;
     SubmitRatingCommand = new RelayCommand(ExecuteSubmitRatingCommand);
     Ratings             = new RatingOptions();
 }
Ejemplo n.º 2
0
 public MainViewModel(IDataService dataService)
 {
     _dataService = dataService;
     MessengerInstance.Register <RefreshGamesMsg>(this, HandleRefreshMessage);
     LoadDataCommand                  = new RelayCommand(ExecuteLoadDataCmd);
     ClearFiltersCommand              = new RelayCommand(ExecuteClearFiltersCommand);
     FilteredGames                    = new ObservableCollection <Game>();
     FilteredGames.CollectionChanged += FilteredGames_CollectionChanged;
     RatingOptions                    = new RatingOptions();
     ExecuteLoadDataCmd();
 }
 /// <summary>
 /// The appropriate rating for the site's general audience.
 /// </summary>
 /// <remarks>
 /// Gravatar allows users to self-rate their images so that they can indicate if an image is appropriate for a certain audience. By default, only 'G' rated images are displayed unless you indicate that you would like to see higher ratings. Using the r= or rating= parameters, you may specify one of the following ratings to request images up to and including that rating
 /// </remarks>
 /// <param name="htmlHelper">The HTML helper.</param>
 /// <param name="rating">The rating.</param>
 /// <returns></returns>
 public GravatarImage Rating(RatingOptions rating)
 {
     this.rating = rating;
     return(this);
 }
 /// <summary>
 /// The appropriate rating for the site's general audience.
 /// </summary>
 /// <remarks>
 /// Gravatar allows users to self-rate their images so that they can indicate if an image is appropriate for a certain audience. By default, only 'G' rated images are displayed unless you indicate that you would like to see higher ratings. Using the r= or rating= parameters, you may specify one of the following ratings to request images up to and including that rating
 /// </remarks>
 /// <param name="htmlHelper">The HTML helper.</param>
 /// <param name="rating">The rating.</param>
 /// <returns></returns>
 public GravatarImage Rating(RatingOptions rating)
 {
     this.rating = rating;
         return this;
 }