public void SelectRecipes(List <Recipe> recipes) { ExportRecipeViewModel vm = DataContext as ExportRecipeViewModel; vm.Recipes.SelectObjectsForExport(recipes); vm.RefreshAllSelected(); }
public void SelectRecipe(Recipe recipe) { ExportRecipeViewModel vm = DataContext as ExportRecipeViewModel; vm.Recipes.SelectObjectForExport(recipe); vm.RefreshAllSelected(); }
private void Export_Click(object sender, RoutedEventArgs e) { ExportRecipeViewModel vm = DataContext as ExportRecipeViewModel; vm.RunExport(); }