Table of Contents

Method RaiseIsRunningChanging

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

RaiseIsRunningChanging(bool, bool)

Called by the framework to raise the IsRunningChanging event.

bool RaiseIsRunningChanging(bool oldIsRunning, bool newIsRunning)

Parameters

oldIsRunning bool

The current value of IsRunning.

newIsRunning bool

The new value of IsRunning (true = starting, false = stopping).

Returns

bool

true if the change was canceled; otherwise false.

Remarks

This method implements the Cancellable Work Pattern. It calls the protected virtual method first, then raises the event if not canceled.

When newIsRunning is false (stopping), this is the ideal place for implementations to extract Result from views before the runnable is removed from the stack.