31 references to TaskDialogResult
System.Windows.Forms (31)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (5)
292
button.StandardButtonResult ==
TaskDialogResult
.Help);
295
private static TaskDialogButton CreatePlaceholderButton(
TaskDialogResult
result)
641
CreatePlaceholderButton((
TaskDialogResult
)resultButtonID);
728
ClickButton((int)
TaskDialogResult
.Cancel, false);
1128
button ??= CreatePlaceholderButton((
TaskDialogResult
)buttonID);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogButton.cs (26)
31
private readonly
TaskDialogResult
? _standardButtonResult;
78
internal TaskDialogButton(
TaskDialogResult
standardButtonResult)
89
public static TaskDialogButton OK => new(
TaskDialogResult
.OK);
102
public static TaskDialogButton Cancel => new(
TaskDialogResult
.Cancel);
107
public static TaskDialogButton Abort => new(
TaskDialogResult
.Abort);
112
public static TaskDialogButton Retry => new(
TaskDialogResult
.Retry);
117
public static TaskDialogButton Ignore => new(
TaskDialogResult
.Ignore);
122
public static TaskDialogButton Yes => new(
TaskDialogResult
.Yes);
127
public static TaskDialogButton No => new(
TaskDialogResult
.No);
132
public static TaskDialogButton Close => new(
TaskDialogResult
.Close);
143
public static TaskDialogButton Help => new(
TaskDialogResult
.Help);
148
public static TaskDialogButton TryAgain => new(
TaskDialogResult
.TryAgain);
153
public static TaskDialogButton Continue => new(
TaskDialogResult
.Continue);
298
internal
TaskDialogResult
StandardButtonResult => _standardButtonResult ?? throw new InvalidOperationException();
314
private static TASKDIALOG_COMMON_BUTTON_FLAGS GetStandardButtonFlagForResult(
TaskDialogResult
result) => result switch
316
TaskDialogResult
.OK => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_OK_BUTTON,
317
TaskDialogResult
.Cancel => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_CANCEL_BUTTON,
318
TaskDialogResult
.Abort => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_ABORT_BUTTON,
319
TaskDialogResult
.Retry => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_RETRY_BUTTON,
320
TaskDialogResult
.Ignore => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_IGNORE_BUTTON,
321
TaskDialogResult
.Yes => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_YES_BUTTON,
322
TaskDialogResult
.No => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_NO_BUTTON,
323
TaskDialogResult
.Close => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_CLOSE_BUTTON,
324
TaskDialogResult
.Help => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_HELP_BUTTON,
325
TaskDialogResult
.TryAgain => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_TRYAGAIN_BUTTON,
326
TaskDialogResult
.Continue => TASKDIALOG_COMMON_BUTTON_FLAGS.TDCBF_CONTINUE_BUTTON,