private void OpenExportWindow(SQLFileDisplayData diff, SQLFileDisplayData undoDiff) { try { this.UIDispatcher.Invoke(() => new ExportWindow(diff, undoDiff).ShowDialog()); } catch (Exception e) { this.UIDispatcher.Invoke(() => { var n = new Greg.WPF.Utility.ExceptionMessageBox(e, "Unhandled Exception"); n.ShowDialog(); }); } }
public ExportWindow(SQLFileDisplayData diff, SQLFileDisplayData undoDiff) { this.DataContext = new ExportWindowViewModel(diff, undoDiff); this.InitializeComponent(); }