private void loadInit() { getWorkbookInstance(); if (workbook != null) { int num = workbook.NumberOfSheets; for (int k = 0; k < num; k++) { SheetNames.Add(workbook.GetSheetName(k)); } } }
private void UpdateSheetNames() { SheetNames.Clear(); if (_workbook == null) { SelectedSheetIndex = -1; IsFileLoaded = false; return; } foreach (var sheet in _workbook.Worksheets) { SheetNames.Add(sheet.Name); } IsFileLoaded = true; SelectedSheetIndex = 0; }