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)
351
ret = (MessageBox.Show(message, DialogCaption, buttons, image,
MessageBoxResult
.OK /*default button is OK*/, 0)
353
MessageBoxResult
.Yes);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
205
System.Windows.MessageBox.ShowCore(parentHwnd, text, title, buttons, image,
MessageBoxResult
.None, MessageBoxOptions.None);
System\Windows\MessageBox.cs (37)
65
private static
MessageBoxResult
Win32ToMessageBoxResult(int value)
70
return
MessageBoxResult
.OK;
72
return
MessageBoxResult
.Cancel;
74
return
MessageBoxResult
.Yes;
76
return
MessageBoxResult
.No;
78
return
MessageBoxResult
.No;
88
public static
MessageBoxResult
Show(
93
MessageBoxResult
defaultResult,
104
public static
MessageBoxResult
Show(
109
MessageBoxResult
defaultResult)
119
public static
MessageBoxResult
Show(
133
public static
MessageBoxResult
Show(
146
public static
MessageBoxResult
Show(string messageBoxText, string caption)
156
public static
MessageBoxResult
Show(string messageBoxText)
239
public static
MessageBoxResult
Show(
244
MessageBoxImage icon,
MessageBoxResult
defaultResult,
255
public static
MessageBoxResult
Show(
261
MessageBoxResult
defaultResult)
271
public static
MessageBoxResult
Show(
286
public static
MessageBoxResult
Show(
300
public static
MessageBoxResult
Show(Window owner, string messageBoxText, string caption)
310
public static
MessageBoxResult
Show(Window owner, string messageBoxText)
316
private static int DefaultResultToButtonNumber(
MessageBoxResult
result, MessageBoxButton button)
325
if (result ==
MessageBoxResult
.Cancel) return DEFAULT_BUTTON2;
328
if (result ==
MessageBoxResult
.No) return DEFAULT_BUTTON2;
331
if (result ==
MessageBoxResult
.No) return DEFAULT_BUTTON2;
332
if (result ==
MessageBoxResult
.Cancel) return DEFAULT_BUTTON3;
339
internal static
MessageBoxResult
ShowCore(
345
MessageBoxResult
defaultResult,
358
throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(
MessageBoxResult
));
392
MessageBoxResult
result = Win32ToMessageBoxResult (UnsafeNativeMethods.MessageBox (new HandleRef (null, owner), messageBoxText, caption, style));
421
private static bool IsValidMessageBoxResult(
MessageBoxResult
value)
423
return value ==
MessageBoxResult
.Cancel
424
|| value ==
MessageBoxResult
.No
425
|| value ==
MessageBoxResult
.None
426
|| value ==
MessageBoxResult
.OK
427
|| 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)
379
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
385
if (dialogResult == System.Windows.
MessageBoxResult
.No)
395
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
401
if (dialogResult == System.Windows.
MessageBoxResult
.No)
411
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
417
if (dialogResult == System.Windows.
MessageBoxResult
.No)
440
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
447
if (dialogResult == System.Windows.
MessageBoxResult
.No)
615
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
MS\Internal\Documents\RightsManagementManager.cs (4)
645
System.Windows.
MessageBoxResult
dialogResult = System.Windows.MessageBox.Show(
651
if (dialogResult == System.Windows.
MessageBoxResult
.Yes)
979
System.Windows.
MessageBoxResult
result =
988
if (result != System.Windows.
MessageBoxResult
.Yes)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
338
) == System.Windows.
MessageBoxResult
.Yes)