Ejemplo n.º 1
0
        private async void LogOutAction()
        {
            //TODO : localisation
            var result = await App.Instance.AlertService.ShowDestructiveAlertAsync(null, "Souhaitez-vous vraiment vous déconnecter ?", "Déconnexion", "Annuler");

            if (result)
            {
                _backgroundTaskService.UnRegister();
                _authenService.Disconnect();
                ApplicationSettings.Clear();
                this.ShowViewModel <StartupViewModel>();
            }
        }