public void SaveSet(string FileName) { Units.SaveSet(FileName); UnitTranslations.SaveSet(FileName); Ingredients.SaveSet(FileName); Recipes.SaveSet(FileName); FoodPlanItems.SaveSet(FileName); }// --> Data
public void EvaluateMaxIDs() { Ingredients.EvaluateMaxID(); FoodPlanItems.EvaluateMaxID(); Recipes.EvaluateMaxID(); Units.EvaluateMaxID(); UnitTranslations.EvaluateMaxID(); ShoppingListItems.EvaluateMaxID(); }
//Methods public void ClearList() { FoodPlanItems.Clear(); Ingredients.Clear(); Recipes.Clear(); ShoppingListItems.Clear(); Units.Clear(); UnitTranslations.Clear(); EvaluateMaxIDs(); }
}// --> View public override string ToString() { string ReturnString = ""; ReturnString += FoodPlanItems.ToString(); ReturnString += Ingredients.ToString(); ReturnString += Recipes.ToString(); ReturnString += Units.ToString(); ReturnString += UnitTranslations.ToString(); ReturnString += ShoppingListItems.ToString(); return(ReturnString); }