Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }