private void button_consCert_Click(object sender, EventArgs e) { ReportViewer rptViewer = new ReportViewer(); rptViewer.prepareConsultationCert(int.Parse(consId)); rptViewer.ShowDialog(); }
private void button_consCert_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 0) { return; } rptViewer.prepareConsultationCert(int.Parse((listView1.SelectedItems[0].Text).ToString())); rptViewer.ShowDialog(); }