|
|
|
@ -82,6 +82,14 @@ namespace Views
|
|
|
|
|
newRecipe.Ingredients.AddRange(IngredientList);
|
|
|
|
|
|
|
|
|
|
bool isRecipeSave = Master.Recipe.AddRecipeToData(newRecipe);
|
|
|
|
|
|
|
|
|
|
// Save data.
|
|
|
|
|
Debug.Write($"[ {DateTime.Now:H:mm:ss} ] Saving...\t");
|
|
|
|
|
Master.Data.SaveData();
|
|
|
|
|
|
|
|
|
|
Debug.WriteLine("Done.");
|
|
|
|
|
Debug.WriteLine(FileSystem.Current.AppDataDirectory);
|
|
|
|
|
|
|
|
|
|
if (isRecipeSave)
|
|
|
|
|
{
|
|
|
|
|
await DisplayAlert("Succès", "La recette a été ajoutée avec succès", "OK");
|
|
|
|
|