コード例 #1
0
 public void SaveSet(string FileName)
 {
     Units.SaveSet(FileName);
     UnitTranslations.SaveSet(FileName);
     Ingredients.SaveSet(FileName);
     Recipes.SaveSet(FileName);
     FoodPlanItems.SaveSet(FileName);
 }// --> Data
コード例 #2
0
 public void EvaluateMaxIDs()
 {
     Ingredients.EvaluateMaxID();
     FoodPlanItems.EvaluateMaxID();
     Recipes.EvaluateMaxID();
     Units.EvaluateMaxID();
     UnitTranslations.EvaluateMaxID();
     ShoppingListItems.EvaluateMaxID();
 }
コード例 #3
0
 //Methods
 public void ClearList()
 {
     FoodPlanItems.Clear();
     Ingredients.Clear();
     Recipes.Clear();
     ShoppingListItems.Clear();
     Units.Clear();
     UnitTranslations.Clear();
     EvaluateMaxIDs();
 }
コード例 #4
0
        }// --> 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);
        }