示例#1
0
        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);
            }
        }
示例#2
0
 public KernelFailedEventArgs(beRemoteException ex)
 {
     // TODO: Complete member initialization
     this.Exception = ex;
 }