Example #1
0
        public override async Task Initialize()
        {
            await base.Initialize();

            await Task.Delay(2000);

            CloseCompletionSource.SetResult(true);
        }
        private async void DenyExecuted()
        {
            var result = new LocationWarningDialogResult(false, false);

            CloseCompletionSource?.SetResult(result);

            await DialogNavigationService.Close(this, true, result);
        }
        private async void AcceptExecuted()
        {
            var result = new LocationWarningDialogResult(true, NeverShowAgain);

            CloseCompletionSource?.SetResult(result);

            await DialogNavigationService.Close(this, true, result);
        }
        public override async ValueTask Initialize()
        {
            await base.Initialize().ConfigureAwait(false);

            await Task.Delay(2000).ConfigureAwait(false);

            CloseCompletionSource.SetResult(true);
        }