Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (SaveFileDialog sfd = new SaveFileDialog()
     {
         Filter = "Excel Workbook| *.xlsx"
     })
     {
         if (sfd.ShowDialog() == DialogResult.OK)
         {
             DataExporter dataExporter = new DataExporter(filename_: sfd.FileName);
             dataExporter.ExportBalance(dataGridView1, categoriesRows);
         }
     }
 }