/// <inheritdoc /> public override void DisplayMessageBox(string message) { IntPtr parentWindow = IntPtr.Zero; if (Window != null) { parentWindow = ((Win32Window)Window).Handle; } else if (HelperWindowHandle != IntPtr.Zero) { parentWindow = HelperWindowHandle; } User32.MessageBox(parentWindow, message, "Something went wrong!", (uint)(0x00000000L | 0x00000010L)); }
public static MessageBoxResult MessageBox(IntPtr hWnd, string lpText, string lpCaption, MessageBoxFlags type) { return(User32Methods.MessageBox(hWnd, lpText, lpCaption, (uint)type)); }