Ejemplo n.º 1
0
        void showReportButton_Click(object sender, EventArgs e)
        {
            ReportListBoxItem selectedItem = (ReportListBoxItem)reportListBox.SelectedItem;
            ReportViewerForm  form         = new ReportViewerForm(selectedItem.Id, serverConnection)
            {
                Owner = this
            };

            form.ShowDialog();
        }
Ejemplo n.º 2
0
 void FillReportListBox(IEnumerable <ReportCatalogItemDto> reports)
 {
     foreach (var reportDto in reports)
     {
         ReportListBoxItem listBoxItem = new ReportListBoxItem()
         {
             DisplayName = reportDto.Name, Id = reportDto.Id
         };
         reportListBox.Items.Add(listBoxItem);
     }
 }