Ejemplo n.º 1
0
        private async void GetAppCountButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var count = await _filter.GetRegisterAppCountAsync();

                GetAppCountBlock.Text = count.ToString();
            }
            catch (Exception exception)
            {
                DisplayException(exception);
            }
        }
Ejemplo n.º 2
0
        private async void GetAppCountButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var count = await _filter.GetRegisterAppCountAsync();

                await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
                {
                    GetAppCountBlock.Text = count.ToString();
                });
            }
            catch (Exception exception)
            {
                DisplayException(exception);
            }
        }