public void ImportDataForConfirmation() { var sheets = ImportedSheets.AddNotExistingSheets(_dataSourceFile.DataSheets); if (sheets.Count == 0) { return; } OnImportSheets.Invoke(this, new ImportSheetsEventArgs { DataSourceFile = _dataSourceFile, SheetNames = sheets, Filter = GetActiveFilterCriteria() }); }
public void ImportDataForConfirmation(string sheetName) { var sheets = new DataSheetCollection(); if (!ImportedSheets.Contains(sheetName)) { ImportedSheets.AddSheet(getSingleSheet(sheetName)); sheets.AddSheet(getSingleSheet(sheetName)); } if (!sheets.Any()) { return; } OnImportSheets.Invoke(this, new ImportSheetsEventArgs { DataSourceFile = _dataSourceFile, SheetNames = sheets.GetDataSheetNames(), Filter = GetActiveFilterCriteria() }); }