private void LoadFile() { try { xlFileReader = new XlFileReader(); xlFileReader.LoadFile("MetrologicGroups.xlsx"); fileWasLoaded = true; } catch (Exception ex) { throw new MetrologicGroupFileNotFoundException(ex.Message); } }
private void ReadDatalFile(string path) { if (!File.Exists(path)) { throw new FileSearshException(); } try { reader.LoadFile(path); } catch { throw new FileSearshException(); } }