public void ExportarDataGrid(ExportarParaArquivo.Formato formato) { if (DataGridExportacao.HasItems) { Exportar Exportar = new Exportar(formato); Exportar.exportarDataGrid(DataGridExportacao); } else { throw new Exception("Não há itens a serem exportados."); } }
public void exportarDataGrid(ExportarParaArquivo.Formato formato, System.Windows.Controls.DataGrid dg) { if (dg.HasItems) { Exportar exportar = new Exportar(formato); exportar.exportarDataGrid(dg); } else { throw new Exception("Não há itens a serem exportados."); } }
public void exportarDataGrid(ExportarParaArquivo.Formato formato, System.Windows.Controls.DataGrid dg) { Exportar exportar = new Exportar(formato); exportar.exportarDataGrid(dg); }