Skip to content

Commit

Permalink
Added load error handling and export
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarta0 committed Jun 11, 2015
1 parent 1022207 commit 8521d66
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Standalone.WPF/MainWindowAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,19 @@ public void Search(IParameter parameter)
};
worker.RunWorkerAsync();
}

protected override void Export(string filename, IExportService service)
{
service.Export(filename, Result);
}

protected override void Load(string filename, bool reset)
{
try { base.Load(filename, true); }
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Load", MessageBoxButton.OK, MessageBoxImage.Exclamation);
}
}
}
}

0 comments on commit 8521d66

Please sign in to comment.