Ejemplo n.º 1
0
        public async Task ShowAcceptCacheTextDialog()
        {
            var dialog = new AcceptCacheUsaseDialog()
            {
                DataContext = new AcceptCacheUsaseDialogContext(withConfirm: false)
            };


            await dialog.ShowAsync();
        }
Ejemplo n.º 2
0
        public async Task <bool> ShowConfirmAcceptCacheDialog()
        {
            var dialog = new AcceptCacheUsaseDialog()
            {
                DataContext = new AcceptCacheUsaseDialogContext()
            };

            var result = await dialog.ShowAsync();

            if (result == Windows.UI.Xaml.Controls.ContentDialogResult.Primary)
            {
                return(true);
            }

            return(false);
        }