コード例 #1
0
 public SearchViewModel(IRecipeService recipeService, IAuthenticator authenticator, IViewBag viewBag, INavigator navigator)
 {
     this._recipeService = recipeService;
     this._authenticator = authenticator;
     this._viewBag       = viewBag;
     this._navigator     = navigator;
     this.Init();
 }
コード例 #2
0
 public MyRecipesViewModel(IRecipeService recipeService, IAuthenticator authenticator, INavigator navigator, IViewBag viewBag)
 {
     this._recipeService = recipeService;
     this._authenticator = authenticator;
     this._navigator     = navigator;
     this._viewBag       = viewBag;
     this.LoadRecipesCommand.Execute(null);
     this.Init();
 }
コード例 #3
0
 public EditRecipeViewModel(
     IViewBag viewBag,
     IRecipeService recipeService,
     INavigator navigator,
     IAuthenticator authenticator)
 {
     this._viewBag                 = viewBag;
     this._recipeService           = recipeService;
     this._navigator               = navigator;
     this._authenticator           = authenticator;
     this.IngredientsGridViewModel = new IngredientsGridViewModel();
     this.Init();
 }