public override void ShowSyncErrorDialog(string message, Exception e) { if (Application.Current != null && !Application.Current.Dispatcher.CheckAccess()) { Application.Current.Dispatcher.Invoke(() => SyncErrorDialog.Show(null, new[] { message }, new[] { e })); return; } SyncErrorDialog.Show(null, new[] { message }, new[] { e }); }
public override void ShowSyncErrorDialog(string message, string trace) { if (Application.Current != null && !Application.Current.Dispatcher.CheckAccess()) { Application.Current.Dispatcher.Invoke(() => SyncErrorDialog.Show(null, message, trace)); return; } SyncErrorDialog.Show(null, message, trace); }