Method Run | Terminal.Gui v1 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Run(Func<Exception, bool>)
public static void Run(Func<Exception, bool> errorHandler = null)
Parameters
errorHandler
Func<Exception, bool>
Run(Func<Exception, bool>, ConsoleDriver, IMainLoopDriver)
public static void Run<T>(Func<Exception, bool> errorHandler = null, ConsoleDriver driver = null, IMainLoopDriver mainLoopDriver = null) where T : Toplevel, new()
Parameters
errorHandler
Func<Exception, bool>
driver
ConsoleDriver
The ConsoleDriver to use. If not specified the default driver for the platform will be used (WindowsDriver, CursesDriver, or NetDriver). This parameteter must be null if Init(ConsoleDriver, IMainLoopDriver) has already been called.
mainLoopDriver
IMainLoopDriver
Specifies the MainLoop to use.
Type Parameters
T
Remarks
Run(Toplevel, Func<Exception, bool>)
Runs the main loop on the given Toplevel container.
public static void Run(Toplevel view, Func<Exception, bool> errorHandler = null)
Parameters
view
Toplevel
The Toplevel to run modally.
errorHandler
Func<Exception, bool>
RELEASE builds only: Handler for any unhandled exceptions (resumes when returns true, rethrows when null).