Esempio n. 1
0
 private void exceptionNullReference_Click(object sender, EventArgs e)
 {
     try
     {
         string blah = null;
         Text = blah.Length.ToString();
     }
     catch (Exception ex)
     {
         _tracker.AddException(ex);
     }
 }
Esempio n. 2
0
 private static void MouseEvent(object sender, MouseEventArgs e)
 {
     try
     {
         _tracker.AddEvent("Mouse Click", new EventValue("Point", e.Location));
     }
     catch (Exception ex)
     {
         // We will just publish all analytics exception because we do not want to negatively affect the user experience by
         // tell them an error occurred on something not important to their business work flow.
         _tracker.AddException(ex);
     }
 }