public Ingredient GetOrAddIngredient(IngredientColumnGroup group) { while (!mIngredients.Any(i => i.Group == group)) { Ingredient ingredientData = AddNewIngredient(); } return(mIngredients.Single(i => i.Group == group)); }
public IngrColumnBehavior(IngredientColumnGroup columnGroup) { this.columnGroup = columnGroup; }
public IngrAmountColumnBehavior(IngredientColumnGroup columnGroup) : base(columnGroup) { }
public IngrNameColumnBehavior(IngredientColumnGroup columnGroup, RecipesView recipesView) : base(columnGroup) { this.recipesView = recipesView; }
public Ingredient(RecipeRow row, IngredientColumnGroup columnGroup) { this.mRow = row; this.mColumnGroup = columnGroup; }