/// <summary> /// Add the Dish as built in the page to the meal, and save to file /// </summary> private void AddToMealExecute() { SelectedMeal.AddDish(EntryName, InputDishCategories, UserData); if (!UserDays.Select(day => day.ThisDate).Contains(SelectedDay.ThisDate)) { UserDays.Add(SelectedDay); } UserDaysIO.WriteUserDaysToJSON(UserDays); }