/** * Constructor */ public MainModel(FileDataHandler fileDataHandler) { _fileDataHandler = fileDataHandler; _fileDataHandler.CountyUpdated += OnCountyFileUpdated; _fileDataHandler.CountiesRead += OnFileCountiesRead; _fileDataHandler.DateFiltersRead += OnFileDateFilterRead; _fileDataHandler.DateFilterStateRead += OnFileDateFilterStateRead; _fileDataHandler.DocketYearRead += OnDocketYearRead; _fileDataHandler.Error += OnFileHandlerError; _fileDataHandler.Warning += OnFileHandlerWarning; _fileDataHandler.ZipCodeFilterStateRead += OnFileZipCodeFilterStateRead; }
public CourtsModel(FileDataHandler fileDataHandler) { _databaseDataHandler = new DatabaseDataHandler(); _databaseDataHandler.DataLoaded += OnDatabaseDataLoaded; _fileDataHandler = fileDataHandler; }