Table of Contents

Class ErrorReportForm

Namespace
NanoByte.Common.EtoControls
Assembly
NanoByte.Common.EtoForms.dll

Presents the user with a friendly interface in case of an error, offering to report it to the developers.

public sealed class ErrorReportForm : Dialog, IHandlerSource, IDisposable, IBindable, IMouseInputSource, IKeyboardInputSource, ICallbackSource, IBindableWidgetContainer
Inheritance
object
Widget
BindableWidget
Control
Container
Panel
Window
Dialog
ErrorReportForm
Implements
IHandlerSource
IBindable
IMouseInputSource
IKeyboardInputSource
ICallbackSource
IBindableWidgetContainer
Inherited Members
Dialog.ShowModal(Control)
Dialog.ShowModal()
Dialog.ShowModalAsync(Control)
Dialog.ShowModalAsync()
Dialog.DisplayMode
Dialog.AbortButton
Dialog.DefaultButton
Dialog.PositiveButtons
Dialog.NegativeButtons
Window.ClosedEvent
Window.ClosingEvent
Window.LocationChangedEvent
Window.WindowStateChangedEvent
Window.LogicalPixelSizeChangedEvent
Window.FromPoint(PointF)
Window.Close()
Window.Minimize()
Window.Maximize()
Window.BringToFront()
Window.SendToBack()
Window.Title
Window.Location
Window.Bounds
Window.ToolBar
Window.Opacity
Window.Owner
Window.Screen
Window.Menu
Window.Icon
Window.Resizable
Window.Maximizable
Window.Minimizable
Window.Closeable
Window.ShowInTaskbar
Window.Topmost
Window.WindowState
Window.RestoreBounds
Window.WindowStyle
Window.LogicalPixelSize
Window.MovableByWindowBackground
Window.AutoSize
Window.Closed
Window.Closing
Window.LocationChanged
Window.OwnerChanged
Window.WindowStateChanged
Window.LogicalPixelSizeChanged
Panel.Remove(Control)
Panel.Controls
Panel.Padding
Panel.MinimumSize
Panel.ContextMenu
Panel.Content
Container.RemoveAll()
Container.ClientSize
Container.Children
Container.VisualChildren
Container.StyleProvider
Container.Styles
Control.SizeChangedEvent
Control.KeyDownEvent
Control.KeyUpEvent
Control.TextInputEvent
Control.MouseDownEvent
Control.MouseUpEvent
Control.MouseMoveEvent
Control.MouseLeaveEvent
Control.MouseEnterEvent
Control.MouseDoubleClickEvent
Control.MouseWheelEvent
Control.GotFocusEvent
Control.LostFocusEvent
Control.ShownEvent
Control.DragDropEvent
Control.DragOverEvent
Control.DragEnterEvent
Control.DragLeaveEvent
Control.DragEndEvent
Control.EnabledChangedEvent
Control.Invalidate()
Control.Invalidate(Rectangle)
Control.UpdateLayout()
Control.GetPreferredSize()
Control.GetPreferredSize(SizeF)
Control.CaptureMouse()
Control.ReleaseMouseCapture()
Control.Detach()
Control.AttachNative()
Control.DetachNative()
Control.Focus()
Control.SuspendLayout()
Control.ResumeLayout()
Control.PointFromScreen(PointF)
Control.PointToScreen(PointF)
Control.RectangleToScreen(RectangleF)
Control.RectangleFromScreen(RectangleF)
Control.DoDragDrop(DataObject, DragEffects)
Control.DoDragDrop(DataObject, DragEffects, Image, PointF)
Control.TriggerStyleChanged()
Control.Print()
Control.Loaded
Control.VisualControls
Control.Tag
Control.LogicalParent
Control.IsVisualControl
Control.Size
Control.IsMouseCaptured
Control.Width
Control.Height
Control.Enabled
Control.Visible
Control.Parent
Control.VisualParent
Control.IsAttached
Control.BackgroundColor
Control.HasFocus
Control.IsSuspended
Control.ParentWindow
Control.SupportedPlatformCommands
Control.Cursor
Control.ToolTip
Control.TabIndex
Control.AllowDrop
Control.SizeChanged
Control.KeyDown
Control.KeyUp
Control.TextInput
Control.MouseDown
Control.MouseUp
Control.MouseMove
Control.MouseLeave
Control.MouseEnter
Control.MouseDoubleClick
Control.MouseWheel
Control.GotFocus
Control.LostFocus
Control.Shown
Control.PreLoad
Control.Load
Control.LoadComplete
Control.UnLoad
Control.DragDrop
Control.DragOver
Control.DragEnter
Control.DragLeave
Control.DragEnd
Control.EnabledChanged
BindableWidget.Unbind()
BindableWidget.UpdateBindings(BindingUpdateMode)
BindableWidget.Parents
BindableWidget.DataContext
BindableWidget.Bindings
BindableWidget.IsDataContextChanging
BindableWidget.DataContextChanged
Widget.Dispose()
Widget.ToString()
Widget.Platform
Widget.Handler
Widget.NativeHandle
Widget.Properties
Widget.ID
Widget.Style
Widget.ControlObject
Widget.IsDisposed
Widget.StyleChanged
Extension Methods

Methods

Report(Exception, Uri)

Displays the error reporting form.

public static void Report(Exception ex, Uri uploadUri)

Parameters

ex Exception

The exception to report.

uploadUri Uri

The URI to upload error reports to.

Remarks

Marshals onto the Eto.Forms UI thread. Creates a new Eto.Forms.Application if none is running.

SetupMonitoring(Uri)

Sets up hooks that catch and report any unhandled exceptions. Calling this more than once has no effect.

[SuppressMessage("Microsoft.Usage", "CA2201:DoNotRaiseReservedExceptionTypes", Justification = "If the actual exception is unknown the generic top-level Exception is the most appropriate")]
[Conditional("ERROR_REPORT")]
public static void SetupMonitoring(Uri uploadUri)

Parameters

uploadUri Uri

The URI to upload error reports to.

Remarks

If an exception is caught any remaining threads will continue to execute until the error has been reported. Then the entire process will be terminated.