pull/66/head
Alexandre AGOSTINHO 2 years ago
parent 9536f0614e
commit b00cee2d3e

@ -73,7 +73,6 @@ namespace Views
base.OnSleep();
}
/// <summary>
/// Load XML raw assets from data.

@ -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");

@ -1,5 +1,6 @@
using AppException;
using Model;
using System.Diagnostics;
namespace Views;
@ -24,6 +25,13 @@ public partial class Login : ContentPage
try
{
usermgr.AddUserToData(usermgr.CreateUser(mail, password));
// Save data.
Debug.Write($"[ {DateTime.Now:H:mm:ss} ] Saving...\t");
Master.Data.SaveData();
Debug.WriteLine("Done.");
Debug.WriteLine(FileSystem.Current.AppDataDirectory);
}
catch (BadMailFormatException)
{

Loading…
Cancel
Save