/// <summary> /// Réinitialise l'application et fait retourner sur la page d'acceuil /// </summary> /// <param name="reinitRoaming">indique si les données roaming doivent être effacé</param> public async Task ReinitAppli(bool reinitRoaming) { await _applicationBusiness.DeleteDatabase(); if (reinitRoaming) { await RoamingCompteBusiness.DeleteRoaming(); await RoamingMouvementBusiness.DeleteRoaming(); } App.OpenDemarrageView(); }
/// <summary> /// Efface toute les données devant être restauré /// </summary> /// <returns>la task</returns> public async Task DeleteForRestauration() { await Bdd.Connection.DropTableAsync <Banque>(); await Bdd.Connection.DropTableAsync <Compte>(); await Bdd.Connection.DropTableAsync <Echeancier>(); await Bdd.Connection.DropTableAsync <Mouvement>(); await Bdd.Connection.DropTableAsync <Categorie>(); await Bdd.Connection.DropTableAsync <SousCategorie>(); await Bdd.Connection.DropTableAsync <SoldeInitial>(); await Bdd.Connection.CreateTableAsync <Banque>(); await Bdd.Connection.CreateTableAsync <Compte>(); await Bdd.Connection.CreateTableAsync <Echeancier>(); await Bdd.Connection.CreateTableAsync <Mouvement>(); await Bdd.Connection.CreateTableAsync <Categorie>(); await Bdd.Connection.CreateTableAsync <SousCategorie>(); await Bdd.Connection.CreateTableAsync <SoldeInitial>(); await RoamingCategorieBusiness.DeleteRoaming(); await RoamingCompteBusiness.DeleteRoaming(); await RoamingEcheancierBusiness.DeleteRoaming(); await RoamingMouvementBusiness.DeleteRoaming(); }