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