示例#1
0
        /// <summary>
        /// active ou désactive la synchro du roaming des catégories
        /// </summary>
        /// <returns>la task</returns>
        public async Task ChangeSynchroEcheancier()
        {
            await _applicationBusiness.SetRoamingEcheancierActive(IsRoamingEcheancierActive);

            App.IsRoamingEcheancierActive = IsRoamingEcheancierActive;
            if (!IsRoamingEcheancierActive)
            {
                await RoamingEcheancierBusiness.DeleteRoaming();
            }
            else
            {
                await RoamingEcheancierBusiness.ReCreerFichierRoaming();
            }
        }
示例#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();
        }