Ejemplo n.º 1
0
 protected virtual Task OnReport(object sender, IReport report)
 {
     return(Windows.Invoke(() =>
     {
         var window = new ReportWindow()
         {
             Source = report,
             ShowActivated = true,
             Owner = Windows.ActiveWindow,
         };
         window.Show();
     }));
 }
Ejemplo n.º 2
0
 protected virtual void OnReport(object sender, ReportEventArgs e)
 {
     var task = Windows.Invoke(() =>
     {
         var window = new ReportWindow()
         {
             DataContext   = this.Core,
             Source        = e.Report,
             ShowActivated = true,
             Owner         = Windows.ActiveWindow,
         };
         window.Show();
     });
 }