Show / Hide Table of Contents

Method dialog.showYesNo


Overload

Shows dialog with Yes and No buttons.

public static bool showYesNo(string text1 = null, string text2 = null, DFlags flags = 0, DIcon icon = 0, AnyWnd owner = default, string expandedText = null, string title = null, int secondsTimeout = 0)
Parameters
text1  (string)

Main instruction. Bigger font.

text2  (string)

Text below main instruction.

flags  (DFlags)
icon  (DIcon)
owner  (AnyWnd)

Owner window. See dialog.SetOwnerWindow.

expandedText  (string)

Text that the user can show and hide.

title  (string)

Title bar text. If omitted, null or "", uses dialog.options.defaultTitle.

secondsTimeout  (int)

If not 0, after this time (seconds) auto-close the dialog and return dialog.Timeout.

Returns
bool

true if selected Yes.

Exceptions
Win32Exception

Failed to show dialog.

Remarks

Calls dialog.show.