public void RunReport(IBioLinkPlugin owner, IBioLinkReport report)
 {
     if (report.DisplayOptions(User, ParentWindow))
     {
         var results = new ReportResults(report);
         AddDocumentContent(owner, results, new DockableContentOptions {
             Title = report.Name, IsFloating = Preferences.OpenReportResultsInFloatingWindow.Value
         });
     }
 }
示例#2
0
 private void ExecuteQueryImpl()
 {
     try {
         var report = new QueryReport(User, _model, IsDistinct);
         var results = new ReportResults(report);
         PluginManager.Instance.AddDocumentContent(Owner, results, new DockableContentOptions { Title = report.Name, IsFloating = Preferences.OpenReportResultsInFloatingWindow.Value });
     } catch (Exception ex) {
         ErrorMessage.Show(ex.Message);
     }
 }