Beispiel #1
0
        /// <summary>
        /// Efface le fichier
        /// </summary>
        /// <returns></returns>
        public async Task Delete()
        {
            await ImageUnlockBusiness.DeleteFile();

            ImageLock    = null;
            _imageToSave = null;
            EtapeUnOk    = false;
            EffacerPoint();
            VerifPointImage();
            EtapeDeuxOk = false;
        }
Beispiel #2
0
        /// <summary>
        /// Efface le fichier de mot de passe
        /// </summary>
        /// <returns></returns>
        public static async Task <bool> ReinitAppli()
        {
            //efface le fichier des mots de passes
            if (await PasswordBusiness.Delete() && await ParamBusiness.Delete() && await CortanaBusiness.DeletePassword())
            {
                await IconeBusiness.DeletelAll();

                await ImageUnlockBusiness.DeleteFile();

                await CortanaBusiness.UpdateCortana();
                await Initialize(true, null);

                return(true);
            }
            return(false);
        }