Example #1
0
        private async void refreshCollection()
        {
            var dialogViewModel = new ConfirmContentDialogViewModel("Refresh Collection", "Are you sure you want to refresh the collection for this user?");

            ContentDialogResult result = await _dialogService.ShowContentDialogAsync(dialogViewModel);

            if (result == ContentDialogResult.Primary)
            {
                GetBaseCollectionOwned();
            }
        }
Example #2
0
        private async void Logout()
        {
            var dialogViewModel = new ConfirmContentDialogViewModel("Logout", "Are you sure you want to logout?");

            ContentDialogResult result = await _dialogService.ShowContentDialogAsync(dialogViewModel);

            if (result == ContentDialogResult.Primary)
            {
                _settingsController.SetUsername(null);

                _gameController.ClearAllGames();

                filteredbaseCollection.Clear();

                IsLoggedIn();
            }
        }