예제 #1
0
        private void ViewSummary(object sender, RoutedEventArgs e)
        {
            ReportViewer.Visibility = Visibility.Visible;
            DailySummary res = null;

            res = im.PrepareDailySummary();

            DailyReportGD.DataContext = res;
        }
예제 #2
0
        private async void ViewSummary(object sender, RoutedEventArgs e)
        {
            ReportViewer.Visibility = Visibility.Visible;
            DailySummary res = null;
            await Task.Run(() =>
            {
                res = im.PrepareDailySummary();
            }).ConfigureAwait(false);

            await Dispatcher.BeginInvoke(new Action(() =>
            {
                DailyReportGD.DataContext = res;
            }));
        }