private void ShowPreview()
        {
            _importer.UpdatePreview(_settings);
            dgvPreview.DataSource = _settings.Preview;

            // Excel sheet combo box
            if (cmbExcelSheet.DataSource == null)
            {
                var ds          = _settings.DataSet;
                var excelSheets = new List <string>(ds.Tables.Count);
                excelSheets.AddRange(from DataTable dt in ds.Tables select dt.TableName);
                cmbExcelSheet.DataSource = excelSheets;
            }
        }
示例#2
0
 private void ShowPreview()
 {
     _importer.UpdatePreview(_settings);
     dgvPreview.DataSource = _settings.Preview;
 }