Table of Contents

Class InlineDialogConfirmationPolicy

Namespace
ItTiger.TigerCli.Tui.Controls
Assembly
ItTiger.TigerCli.dll
Optional, reusable confirmation policy for an InlineDialog. When a confirmable key-produced result (Cancel or Abort) is requested and this policy includes that kind, the dialog enters an internal confirmation mode (a Yes/No message box) before completing. Choosing Yes completes with the originally requested kind; No (or Escape) dismisses the confirmation and resumes the original dialog. Loop-/externally-produced kinds (TokenCancel, Timeout, SystemCancel) are never confirmed.
public sealed record InlineDialogConfirmationPolicy : IEquatable<InlineDialogConfirmationPolicy>
Inheritance
InlineDialogConfirmationPolicy
Implements
Inherited Members

Properties

Confirm

The result kinds to confirm before completing. Defaults to none.
public DialogConfirmationKinds Confirm { get; init; }

Property Value

DialogConfirmationKinds

ConfirmAbort

Confirm Abort only.
public static InlineDialogConfirmationPolicy ConfirmAbort { get; }

Property Value

InlineDialogConfirmationPolicy

ConfirmCancel

Confirm Cancel only.
public static InlineDialogConfirmationPolicy ConfirmCancel { get; }

Property Value

InlineDialogConfirmationPolicy

ConfirmCancelAndAbort

Confirm both Cancel and Abort.
public static InlineDialogConfirmationPolicy ConfirmCancelAndAbort { get; }

Property Value

InlineDialogConfirmationPolicy

MessageProvider

Optional per-kind confirmation message override. Receives the requested DialogResultKind; returning null (or leaving this unset) falls back to the localized default (Tui_Confirm_Cancel_Message / Tui_Confirm_Abort_Message).
public Func<DialogResultKind, string?>? MessageProvider { get; init; }

Property Value

Func<DialogResultKind, string>

None

No confirmation — completes immediately for every result kind (current default behavior).
public static InlineDialogConfirmationPolicy None { get; }

Property Value

InlineDialogConfirmationPolicy