private void pictureBox9_Click(object sender, EventArgs e) { try { consommation cl = new consommation(); cl.DataSource = StormSoft.classe.glossaire.GetInstance().sortieConsommation(); ReportPrintTool printTool = new ReportPrintTool(cl); printTool.ShowPreviewDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void pictureBox5_Click(object sender, EventArgs e) { try { consommation j = new consommation(); j.DataSource = StormSoft.classe.glossaire.GetInstance().sortieConsommationInterval(dateEdit3.Text, dateEdit4.Text); ReportPrintTool printTool = new ReportPrintTool(j); printTool.ShowPreviewDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }