Пример #1
0
 private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     if (!e.Handled)
     {
         System.Net.WebException ex = e.Exception as System.Net.WebException;
         if (ex != null)
         {
             e.Handled = true;
             Pages.ErrorPage errorPage = new Mubox.QuickLaunch.Pages.ErrorPage();
             errorPage.DataContext = ex;
             frameContentPage.Navigate(errorPage);
         }
     }
 }
Пример #2
0
 private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     if (!e.Handled)
     {
         System.Net.WebException ex = e.Exception as System.Net.WebException;
         if (ex != null)
         {
             e.Handled = true;
             Pages.ErrorPage errorPage = new Mubox.QuickLaunch.Pages.ErrorPage();
             errorPage.DataContext = ex;
             frameContentPage.Navigate(errorPage);
         }
     }
 }
Пример #3
0
 public void ShowErrorPage(Exception ex)
 {
     Pages.ErrorPage errorPage = new Mubox.QuickLaunch.Pages.ErrorPage();
     errorPage.DataContext = ex ?? new Exception("Network failure, check your Firewall.");
     this.frameContentPage.Navigate(errorPage);
 }
Пример #4
0
 public void ShowErrorPage(Exception ex)
 {
     Pages.ErrorPage errorPage = new Mubox.QuickLaunch.Pages.ErrorPage();
     errorPage.DataContext = ex ?? new Exception("Network failure, check your Firewall.");
     this.frameContentPage.Navigate(errorPage);
 }