Ejemplo n.º 1
0
 /// <summary>
 /// Displays a message box in front of the specified owner window. The message box
 /// displays a message and title bar caption and returns a result.</summary>
 /// <param name="owner">A System.Windows.Window that represents the owner window of the message box</param>
 /// <param name="messageBoxText">A System.String that specifies the text to display</param>
 /// <param name="caption">A System.String that specifies the title bar caption to display</param>
 /// <returns>A System.Windows.MessageBoxResult value that specifies which message box button is clicked by the user</returns>
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption)
 {
     return(WpfMessageBox.Show(owner, messageBoxText, caption, MessageBoxButton.OK, MessageBoxImage.None));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Displays a message box with a message, title bar caption, button(s) and icon and returns a result.</summary>
 /// <param name="messageBoxText">A System.String that specifies the text to display</param>
 /// <param name="caption">A System.String that specifies the title bar caption to display</param>
 /// <param name="button">A System.Windows.MessageBoxButton value that specifies which button or buttons to display</param>
 /// <param name="icon">A System.Windows.MessageBoxImage value that specifies the icon to display</param>
 /// <returns>A System.Windows.MessageBoxResult value that specifies which message box button is clicked by the user</returns>
 public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon)
 {
     return(WpfMessageBox.Show(null, messageBoxText, caption, button, icon));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Displays a message box that has a message and returns a result</summary>
 /// <param name="messageBoxText">A System.String that specifies the text to display</param>
 /// <returns>A System.Windows.MessageBoxResult value that specifies which message box button is clicked by the user</returns>
 public static MessageBoxResult Show(string messageBoxText)
 {
     return(WpfMessageBox.Show(null, messageBoxText, null, MessageBoxButton.OK, MessageBoxImage.None));
 }