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