private void loadLocal() { Dictionary <string, string> dic = new Dictionary <string, string>(); try { try { _localReader = new FISImportReader(_pathLocal); } catch (System.IO.IOException) { _localReader = null; } } catch (Exception) { _localReader = null; } if (_localReader != null) { _partImportUtils = new ParticipantImportUtils(_localReader.GetMapping(null), _dm.GetParticipantCategories(), new ClassAssignment(_dm.GetParticipantClasses())); } else { _partImportUtils = null; } var handler = DataChanged; handler?.Invoke(this, new EventArgs()); }
public void UpdateFISList(FISImportReader fileReader) { System.IO.File.Copy(fileReader.FileName, _pathLocal, true); loadLocal(); }