public async Task LoadAsync(ApplicationDatabase applicationDatabase)
{
if (applicationDatabase == null)
{
throw new ArgumentNullException(nameof(applicationDatabase));
}
StatementModel?.Dispose();
try
{
StatementModel = await this.statementRepository.LoadAsync(applicationDatabase.FullPath(applicationDatabase.StatementModelStorageKey), applicationDatabase.IsEncrypted);
}
catch (StatementModelChecksumException ex)
{
throw new DataFormatException("Statement Model data is corrupt and has been tampered with. Unable to load.", ex);
}
NewDataAvailable();
}