43 references to MessageBoxResult
PresentationFramework (40)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1187
ret = (MessageBox.Show(message, DialogCaption, buttons, image,
MessageBoxResult
.OK /*default button is OK*/, 0)
1189
MessageBoxResult
.Yes);
src\Framework\System\Windows\MessageBox.cs (37)
77
private static
MessageBoxResult
Win32ToMessageBoxResult(int value)
82
return
MessageBoxResult
.OK;
84
return
MessageBoxResult
.Cancel;
86
return
MessageBoxResult
.Yes;
88
return
MessageBoxResult
.No;
90
return
MessageBoxResult
.No;
105
public static
MessageBoxResult
Show(
110
MessageBoxResult
defaultResult,
126
public static
MessageBoxResult
Show(
131
MessageBoxResult
defaultResult)
146
public static
MessageBoxResult
Show(
165
public static
MessageBoxResult
Show(
183
public static
MessageBoxResult
Show(string messageBoxText, string caption)
198
public static
MessageBoxResult
Show(string messageBoxText)
322
public static
MessageBoxResult
Show(
327
MessageBoxImage icon,
MessageBoxResult
defaultResult,
343
public static
MessageBoxResult
Show(
349
MessageBoxResult
defaultResult)
364
public static
MessageBoxResult
Show(
384
public static
MessageBoxResult
Show(
403
public static
MessageBoxResult
Show(Window owner, string messageBoxText, string caption)
418
public static
MessageBoxResult
Show(Window owner, string messageBoxText)
424
private static int DefaultResultToButtonNumber(
MessageBoxResult
result, MessageBoxButton button)
433
if (result ==
MessageBoxResult
.Cancel) return DEFAULT_BUTTON2;
436
if (result ==
MessageBoxResult
.No) return DEFAULT_BUTTON2;
439
if (result ==
MessageBoxResult
.No) return DEFAULT_BUTTON2;
440
if (result ==
MessageBoxResult
.Cancel) return DEFAULT_BUTTON3;
451
internal static
MessageBoxResult
ShowCore(
457
MessageBoxResult
defaultResult,
470
throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(
MessageBoxResult
));
508
MessageBoxResult
result = Win32ToMessageBoxResult (UnsafeNativeMethods.MessageBox (new HandleRef (null, owner), messageBoxText, caption, style));
537
private static bool IsValidMessageBoxResult(
MessageBoxResult
value)
539
return value ==
MessageBoxResult
.Cancel
540
|| value ==
MessageBoxResult
.No
541
|| value ==
MessageBoxResult
.None
542
|| value ==
MessageBoxResult
.OK
543
|| value ==
MessageBoxResult
.Yes;
src\Shared\MS\Internal\SecurityHelper.cs (1)
1227
System.Windows.MessageBox.ShowCore(parentHwnd, text, title, buttons, image,
MessageBoxResult
.None, MessageBoxOptions.None);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (3)
1646
MessageBoxResult
result = MessageBox.Show(SR.DeleteAllAnnotationMessage, SR.DeleteAnnotationTitle, MessageBoxButton.YesNo, MessageBoxImage.Question,
MessageBoxResult
.No);
1648
if (result !=
MessageBoxResult
.Yes)