示例#1
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/> and <paramref name="symbol"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/> and <paramref name="symbol"/>.
 /// The dialog box is centered on screen.
 /// </remarks>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="symbol">
 /// The dialog box symbol to be shown.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(String message, DialogSymbol symbol)
 {
     return(DialogBox.Show((Window)null, message, symbol));
 }
示例#2
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>,
 /// <paramref name="symbol"/>, and <paramref name="buttons"/>, as well as applying provided
 /// <paramref name="options"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>,
 /// <paramref name="symbol"/>, and <paramref name="buttons"/>, as well as applying provided
 /// <paramref name="options"/>. The dialog box is centered on screen.
 /// </remarks>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="caption">
 /// The dialog box caption to be used.
 /// </param>
 /// <param name="symbol">
 /// The dialog box symbol to be shown.
 /// </param>
 /// <param name="buttons">
 /// The set of flags describing the used buttons.
 /// </param>
 /// <param name="options">
 /// The list of additional dialog box options.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(String message, String caption, DialogSymbol symbol, DialogButton buttons, params DialogOption[] options)
 {
     return(DialogBox.Show(null, message, caption, symbol, buttons, options));
 }
示例#3
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>.
 /// The dialog box is centered within the <paramref name="owner"/>'s bounds.
 /// </remarks>
 /// <param name="owner">
 /// The owner of the dialog box.
 /// </param>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(Window owner, String message)
 {
     return(DialogBox.Show(owner, message, null));
 }
示例#4
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>,
 /// <paramref name="symbol"/> and <paramref name="buttons"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>,
 /// <paramref name="symbol"/> and <paramref name="buttons"/>. The dialog box is centered within the
 /// <paramref name="owner"/>'s bounds.
 /// </remarks>
 /// <param name="owner">
 /// The owner of the dialog box.
 /// </param>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="caption">
 /// The dialog box caption to be used.
 /// </param>
 /// <param name="symbol">
 /// The dialog box symbol to be shown.
 /// </param>
 /// <param name="buttons">
 /// The set of flags describing the used buttons.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(Window owner, String message, String caption, DialogSymbol symbol, DialogButton buttons)
 {
     return(DialogBox.Show(owner, message, caption, symbol, buttons, null));
 }
示例#5
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>, <paramref name="symbol"/>
 /// and <paramref name="buttons"/>, as well as applying provided <paramref name="options"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>, <paramref name="symbol"/>
 /// and <paramref name="buttons"/>, as well as applying provided <paramref name="options"/>. The dialog box
 /// is centered within the <paramref name="owner"/>'s bounds.
 /// </remarks>
 /// <param name="owner">
 /// The owner of the dialog box.
 /// </param>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="symbol">
 /// The dialog box symbol to be shown.
 /// </param>
 /// <param name="buttons">
 /// The set of flags describing the used buttons.
 /// </param>
 /// <param name="options">
 /// The list of additional dialog box options.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(Window owner, String message, DialogSymbol symbol, DialogButton buttons, params DialogOption[] options)
 {
     return(DialogBox.Show(owner, message, owner?.Title, symbol, buttons, options));
 }
示例#6
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>
 /// and <paramref name="buttons"/>, as well as applying provided <paramref name="options"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>
 /// and <paramref name="buttons"/>, as well as applying provided <paramref name="options"/>. The dialog box
 /// is centered within the <paramref name="owner"/>'s bounds.
 /// </remarks>
 /// <param name="owner">
 /// The owner of the dialog box.
 /// </param>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="caption">
 /// The dialog box caption to be used.
 /// </param>
 /// <param name="buttons">
 /// The set of flags describing the used buttons.
 /// </param>
 /// <param name="options">
 /// The list of additional dialog box options.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(Window owner, String message, String caption, DialogButton buttons, params DialogOption[] options)
 {
     return(DialogBox.Show(owner, message, caption, DialogSymbol.None, buttons, options));
 }
示例#7
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>.
 /// The dialog box is centered on screen.
 /// </remarks>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(String message)
 {
     return(DialogBox.Show((Window)null, message));
 }
示例#8
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/> and <paramref name="buttons"/>,
 /// as well as applying provided <paramref name="options"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/> and <paramref name="buttons"/>,
 /// as well as applying provided <paramref name="options"/>. The dialog box is centered on screen.
 /// </remarks>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="buttons">
 /// The set of flags describing the used buttons.
 /// </param>
 /// <param name="options">
 /// The list of additional dialog box options.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(String message, DialogButton buttons, params DialogOption[] options)
 {
     return(DialogBox.Show((Window)null, message, buttons, options));
 }
示例#9
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>
 /// and <paramref name="buttons"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>, <paramref name="caption"/>
 /// and <paramref name="buttons"/>. The dialog box is centered on screen.
 /// </remarks>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="caption">
 /// The dialog box caption to be used.
 /// </param>
 /// <param name="buttons">
 /// The set of flags describing the used buttons.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(String message, String caption, DialogButton buttons)
 {
     return(DialogBox.Show(null, message, caption, DialogSymbol.None, buttons, null));
 }
示例#10
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/> and <paramref name="buttons"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/> and <paramref name="buttons"/>.
 /// The dialog box is centered within the <paramref name="owner"/>'s bounds.
 /// </remarks>
 /// <param name="owner">
 /// The owner of the dialog box.
 /// </param>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="buttons">
 /// The set of flags describing the used buttons.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(Window owner, String message, DialogButton buttons)
 {
     return(DialogBox.Show(owner, message, owner?.Title, DialogSymbol.None, buttons));
 }
示例#11
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/>, <paramref name="symbol"/>
 /// and <paramref name="caption"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/>, <paramref name="symbol"/>
 /// and <paramref name="caption"/>. The dialog box is centered on screen.
 /// </remarks>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="caption">
 /// The dialog box caption to be used.
 /// </param>
 /// <param name="symbol">
 /// The dialog box symbol to be shown.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(String message, String caption, DialogSymbol symbol)
 {
     return(DialogBox.Show(null, message, caption, symbol));
 }
示例#12
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/> and <paramref name="caption"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/> and <paramref name="caption"/>.
 /// The dialog box is centered within the <paramref name="owner"/>'s bounds.
 /// </remarks>
 /// <param name="owner">
 /// The owner of the dialog box.
 /// </param>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="caption">
 /// The dialog box caption to be used.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(Window owner, String message, String caption)
 {
     return(DialogBox.Show(owner, message, caption, DialogSymbol.None));
 }
示例#13
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/> and <paramref name="caption"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/> and <paramref name="caption"/>.
 /// The dialog box is centered on screen.
 /// </remarks>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="caption">
 /// The dialog box caption to be used.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(String message, String caption)
 {
     return(DialogBox.Show(null, message, caption));
 }
示例#14
0
 /// <summary>
 /// Shows the dialog box using provided <paramref name="message"/> and <paramref name="symbol"/>.
 /// </summary>
 /// <remarks>
 /// This method shows the dialog box using provided <paramref name="message"/> and <paramref name="symbol"/>.
 /// The dialog box is centered within the <paramref name="owner"/>'s bounds.
 /// </remarks>
 /// <param name="owner">
 /// The owner of the dialog box.
 /// </param>
 /// <param name="message">
 /// The message to be displayed.
 /// </param>
 /// <param name="symbol">
 /// The dialog box symbol to be shown.
 /// </param>
 /// <returns>
 /// The dialog result according to the pressed button.
 /// </returns>
 public static DialogResult Show(Window owner, String message, DialogSymbol symbol)
 {
     return(DialogBox.Show(owner, message, owner?.Title, symbol, DialogButton.Close));
 }