Exemple #1
0
        private async void OnCancelAsync()
        {
            SelectedDonation.AcceptedBy = null;
            await CosmosDBService.UpdateDonation(SelectedDonation);

            if (await _pageService.DisplayAlert("Donation", "Cancelled.", "Ok", "Cancel"))
            {
                await _pageService.PushAsync(new MainTabbedPage());
            }
        }
Exemple #2
0
        private async void OnAcceptAsync()
        {
            SelectedDonation.AcceptedBy = AppSettings.GetValueOrDefault("UserId", "");
            await CosmosDBService.UpdateDonation(SelectedDonation);

            if (await _pageService.DisplayAlert("Donation", "Accepted donation.", "Ok", "Cancel"))
            {
                await _pageService.PushAsync(new MainTabbedPage());
            }
        }