Exemple #1
0
 public bool HandleException(Exception e)
 {
     // See if it is our good friend the stock quote guy which happens when
     // internet is unavailable, or stock quote service is down.
     if (window != null)
     {
         AutomationElement msgbox = window.FindChildWindow("Error Fetching Stock Quotes", 3);
         if (msgbox != null)
         {
             MessageBoxWrapper mbox = new MessageBoxWrapper(msgbox);
             mbox.ClickOk();
             return(true);
         }
     }
     return(false);
 }