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