void HandleException(Exception ex) { var message = "Live Geometry has just encountered an error.\n" + "The error details will be reported automatically \n" + "and the bug will be fixed as soon as possible.\n\n" + "No personal data is transmitted.\n\n" + "If you have any questions, please feel free to go to \n" + "http://livegeometry.codeplex.com/Thread/List.aspx \n" + "and mention the error code from below.\n\n" + "Thanks for making Live Geometry better!"; var dialog = new ExceptionMessageDialog(this, ex, message); drawingHost.ShowProperties(dialog); if (liveGeometryWebServices == null) { return; } try { liveGeometryWebServices.SendErrorReportAsync(ex.ToString()); } catch (Exception second) { drawingHost.ShowHint(second.ToString()); } }