Exemplo n.º 1
0
 public FoodAdminViewModel(DishViewModel dishViewModel, IngredientViewModel ingredientViewModel, TagViewModel tagViewModel, IViewDisabler viewDisabler)
 {
     ViewDisabler        = viewDisabler;
     DishViewModel       = dishViewModel;
     IngredientViewModel = ingredientViewModel;
     TagViewModel        = tagViewModel;
 }
Exemplo n.º 2
0
 public async Task Initialize()
 {
     ViewDisabler.Disable("Laster...", Task.WhenAll(DishViewModel.Initialize(), IngredientViewModel.Initialize(), TagViewModel.Initialize()));
 }