57 references to MessageBoxResult
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Notification\EditorNotificationServiceFactory.cs (1)
80
return MessageBox.Show(message, title, MessageBoxButton.YesNo, image) ==
MessageBoxResult
.Yes;
PresentationFramework (40)
Microsoft\Win32\CommonItemDialog.cs (2)
362
ret = (MessageBox.Show(message, DialogCaption, buttons, image,
MessageBoxResult
.OK /*default button is OK*/, 0)
364
MessageBoxResult
.Yes);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
210
System.Windows.MessageBox.ShowCore(parentHwnd, text, title, buttons, image,
MessageBoxResult
.None, MessageBoxOptions.None);
System\Windows\MessageBox.cs (37)
72
private static
MessageBoxResult
Win32ToMessageBoxResult(int value)
77
return
MessageBoxResult
.OK;
79
return
MessageBoxResult
.Cancel;
81
return
MessageBoxResult
.Yes;
83
return
MessageBoxResult
.No;
85
return
MessageBoxResult
.No;
95
public static
MessageBoxResult
Show(
100
MessageBoxResult
defaultResult,
111
public static
MessageBoxResult
Show(
116
MessageBoxResult
defaultResult)
126
public static
MessageBoxResult
Show(
140
public static
MessageBoxResult
Show(
153
public static
MessageBoxResult
Show(string messageBoxText, string caption)
163
public static
MessageBoxResult
Show(string messageBoxText)
246
public static
MessageBoxResult
Show(
251
MessageBoxImage icon,
MessageBoxResult
defaultResult,
262
public static
MessageBoxResult
Show(
268
MessageBoxResult
defaultResult)
278
public static
MessageBoxResult
Show(
293
public static
MessageBoxResult
Show(
307
public static
MessageBoxResult
Show(Window owner, string messageBoxText, string caption)
317
public static
MessageBoxResult
Show(Window owner, string messageBoxText)
323
private static int DefaultResultToButtonNumber(
MessageBoxResult
result, MessageBoxButton button)
332
if (result ==
MessageBoxResult
.Cancel) return DEFAULT_BUTTON2;
335
if (result ==
MessageBoxResult
.No) return DEFAULT_BUTTON2;
338
if (result ==
MessageBoxResult
.No) return DEFAULT_BUTTON2;
339
if (result ==
MessageBoxResult
.Cancel) return DEFAULT_BUTTON3;
346
internal static
MessageBoxResult
ShowCore(
352
MessageBoxResult
defaultResult,
365
throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(
MessageBoxResult
));
399
MessageBoxResult
result = Win32ToMessageBoxResult (UnsafeNativeMethods.MessageBox (new HandleRef (null, owner), messageBoxText, caption, style));
428
private static bool IsValidMessageBoxResult(
MessageBoxResult
value)
430
return value ==
MessageBoxResult
.Cancel
431
|| value ==
MessageBoxResult
.No
432
|| value ==
MessageBoxResult
.None
433
|| value ==
MessageBoxResult
.OK
434
|| value ==
MessageBoxResult
.Yes;
PresentationUI (16)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (2)
109
System.Windows.
MessageBoxResult
result =
118
fatal = fatal && (result != System.Windows.
MessageBoxResult
.Yes);
MS\Internal\Documents\DocumentSignatureManager.cs (9)
383
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
389
if (dialogResult == System.Windows.
MessageBoxResult
.No)
399
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
405
if (dialogResult == System.Windows.
MessageBoxResult
.No)
415
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
421
if (dialogResult == System.Windows.
MessageBoxResult
.No)
444
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
451
if (dialogResult == System.Windows.
MessageBoxResult
.No)
619
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
MS\Internal\Documents\RightsManagementManager.cs (4)
646
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
652
if (dialogResult == System.Windows.
MessageBoxResult
.Yes)
980
System.Windows.
MessageBoxResult
result =
989
if (result != System.Windows.
MessageBoxResult
.Yes)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
329
) == System.Windows.
MessageBoxResult
.Yes)