Ejemplo n.º 1
0
 private void Preview() {            
     try {
         using (new OverrideCursor(Cursors.Wait)) {
             Excel2010Importer.ExcelDataTable(Filename, Worksheet, 100, dt => {
                 previewGrid.ItemsSource = dt.DefaultView;
             });
         }
     } catch (Exception ex) {                
         ErrorMessage.Show("An error occurred open the selected file: {0}", ex.Message);
     } finally {
     }
 }
Ejemplo n.º 2
0
 private List<string> GetExcelSheetNames(string filename, bool suppressException = false) {
     using (new OverrideCursor(Cursors.Wait)) {
         return Excel2010Importer.GetWorksheetNames(filename, suppressException);
     }
 }