public static void ShowHandledExceptionDialog(beRemoteException bEx) { bool closed = false; Application.Current.Dispatcher.BeginInvoke(new Action(() => { if (bEx.GetHandlerAction() != null) { bEx.GetHandlerAction().Invoke(); } else { var ui = new UIExceptionWindow(bEx, false); ui.ShowDialog(); } closed = true; }), null); while (closed == false) { Thread.Sleep(500); } }
public KernelFailedEventArgs(beRemoteException ex) { // TODO: Complete member initialization this.Exception = ex; }