/// <summary> /// Efface le fichier /// </summary> /// <returns></returns> public async Task Delete() { await ImageUnlockBusiness.DeleteFile(); ImageLock = null; _imageToSave = null; EtapeUnOk = false; EffacerPoint(); VerifPointImage(); EtapeDeuxOk = false; }
/// <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); }