public static DataTable loadPublishersFromDisk() { try { publishers = NPOIExcelUtilities.ExcelSheetToDataTable("all-publishers.xlsx", 0); } catch (Exception ex) { // throw ex; publishers = new DataTable(); } return(publishers); }
public static DataTable loadAssignmentsFromDisk() { try { assignments = NPOIExcelUtilities.ExcelSheetToDataTable("all-assignments.xlsx", 0); } catch (Exception ex) { // throw ex; assignments = new DataTable(); } return(assignments); }
public static DataTable loadAllAddressesFromDisk() { DataTable result = null; if (File.Exists("all-addresses.xlsx")) { result = NPOIExcelUtilities.ExcelSheetToDataTable("all-addresses.xlsx", 0); } else { result = new DataTable(); } return(result); }