Exemplo n.º 1
0
 public static RecipeQuery ToQuery(this RecipeListParameters parameters)
 {
     return(new RecipeQuery
     {
         CategoryId = parameters.CategorySelected ? parameters.CategoryId : (int?)null,
         OnlyFavorite = parameters.IsFavoriteSelected,
         SearchTerm = parameters.SearchTerm
     });
 }
Exemplo n.º 2
0
 public void RestoreState(RecipeListParameters parameters)
 {
     Query = parameters == null ? new RecipeQuery() : parameters.ToQuery();
     Refresh(Query);
 }
Exemplo n.º 3
0
 public void Init(RecipeListParameters parameters)
 {
     Query = parameters == null ? new RecipeQuery() : parameters.ToQuery();
     Refresh(Query);
 }
Exemplo n.º 4
0
 public RecipeListLoaded(object sender, RecipeListParameters parameters) : base(sender)
 {
     Parameters = parameters;
 }
Exemplo n.º 5
0
 private void Navigate(RecipeListParameters parameters)
 {
     ShowViewModel <RecipeListViewModel>(parameters);
 }