Exemple #1
0
        /// <summary>
        /// active ou désactive la synchro du roaming des catégories
        /// </summary>
        /// <returns>la task</returns>
        public async Task ChangeSynchroCategorie()
        {
            await _applicationBusiness.SetRoamingCategorieActive(IsRoamingCategorieActive);

            App.IsRoamingCategorieActive = IsRoamingCategorieActive;

            if (!IsRoamingCategorieActive)
            {
                await RoamingCategorieBusiness.DeleteRoaming();
            }
            else
            {
                await RoamingCategorieBusiness.ReCreerFichierRoaming();
            }
        }
Exemple #2
0
        /// <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();
        }