示例#1
0
 public AddRecipe(IRecipeRepository recipeRepository)
 {
     this.recipeRepository = recipeRepository;
     InitializeComponent();
     BindingContext = new RecipeViewModel(recipeRepository);
 }
示例#2
0
 public Page2(IRecipeRepository recipeRepository)
 {
     InitializeComponent();
     this.recipeRepository = recipeRepository;
     BindingContext        = new RecipeViewModel(recipeRepository);
 }