示例#1
0
 /// <summary>
 /// 在指定窗口的前面显示消息框。该消息框显示消息、标题栏标题、按钮和图标,并接受默认消息框结果和返回结果。
 /// </summary>
 /// <param name="owner">一个 <see cref="System.Windows.Window"/>,表示消息框的所有者窗口。</param>
 /// <param name="messageBoxText">一个 <see cref="System.String"/>,用于指定要显示的文本。</param>
 /// <param name="caption"> 一个 <see cref="System.String"/>,用于指定要显示的标题栏标题。</param>
 /// <param name="button">一个 <see cref="System.Windows.MessageBoxButton"/> 值,用于指定要显示哪个按钮或哪些按钮。</param>
 /// <param name="icon">
 /// 一个 <see cref="System.Windows.MessageBoxImage"/> 值,用于指定要显示的图标。
 /// 未使用,留白.
 /// </param>
 /// <param name="defaultResult"> 一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定消息框的默认结果。</param>
 /// <returns> 一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult)
 {
     if (MessageBoxType == MIVMessageBoxType.System)
     {
         return(System.Windows.MessageBox.Show(owner, messageBoxText, caption, button, icon, defaultResult));
     }
     return(MessageBoxModule.Show(owner, messageBoxText, caption, button, icon, defaultResult));
 }
示例#2
0
 /// <summary>
 /// 在指定窗口的前面显示消息框。该消息框显示消息并返回结果。
 /// </summary>
 /// <param name="owner">一个 <see cref="System.Windows.Window"/>,表示消息框的所有者窗口。</param>
 /// <param name="messageBoxText">一个 <see cref="System.String"/>,用于指定要显示的文本。</param>
 /// <returns> 一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
 public static MessageBoxResult Show(Window owner, string messageBoxText)
 {
     if (MessageBoxType == MIVMessageBoxType.System)
     {
         return(System.Windows.MessageBox.Show(owner, messageBoxText));
     }
     return(MessageBoxModule.Show(owner, messageBoxText));
 }
示例#3
0
 /// <summary>
 /// 显示一个消息框,该消息框包含消息、标题栏标题和按钮,并且返回结果。
 /// </summary>
 /// <param name="messageBoxText">一个 <see cref="System.String"/>,用于指定要显示的文本。</param>
 /// <param name="caption"> 一个 <see cref="System.String"/>,用于指定要显示的标题栏标题。</param>
 /// <param name="button">一个 <see cref="System.Windows.MessageBoxButton"/> 值,用于指定要显示哪个按钮或哪些按钮。</param>
 /// <returns>一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
 public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button)
 {
     if (MessageBoxType == MIVMessageBoxType.System)
     {
         return(System.Windows.MessageBox.Show(messageBoxText, caption, button));
     }
     return(MessageBoxModule.Show(messageBoxText, caption, button));
 }
示例#4
0
 /// <summary>
 /// 在指定窗口的前面显示消息框。该消息框显示消息、标题栏标题、按钮和图标,并接受默认消息框结果和返回结果。
 /// </summary>
 /// <param name="owner">一个 <see cref="System.Windows.Window"/>,表示消息框的所有者窗口。</param>
 /// <param name="messageBoxText">一个 <see cref="System.String"/>,用于指定要显示的文本。</param>
 /// <param name="caption"> 一个 <see cref="System.String"/>,用于指定要显示的标题栏标题。</param>
 /// <param name="button">一个 <see cref="System.Windows.MessageBoxButton"/> 值,用于指定要显示哪个按钮或哪些按钮。</param>
 /// <param name="icon">
 /// 一个 <see cref="System.Windows.MessageBoxImage"/> 值,用于指定要显示的图标。
 /// 未使用,留白.
 /// </param>
 /// <param name="defaultResult"> 一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定消息框的默认结果。</param>
 /// <returns> 一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult)
 {
     return(MessageBoxModule.Show(owner, messageBoxText, caption, button, icon, defaultResult));
 }
示例#5
0
 /// <summary>
 /// 在指定窗口的前面显示消息框。该消息框显示消息、标题栏标题和按钮,并且支持自定义按钮和动作。
 /// </summary>
 /// <param name="owner"> 一个 <see cref="System.Windows.Window"/>,表示消息框的所有者窗口。</param>
 /// <param name="messageBoxText">一个 <see cref="System.String"/>,用于指定要显示的文本。</param>
 /// <param name="caption"> 一个 <see cref="System.String"/>,用于指定要显示的标题栏标题。</param>
 /// <param name="ctrlButtons">一组自定义的按钮和响应动作。</param>
 /// <returns> <paramref name="ctrlButtons"/> 中点击的 MessageBoxButtonInfo.Result 结果.</returns>
 public static MessageBoxResult Show(Window owner, string messageBoxText, string caption, IList <MessageBoxButtonInfo> ctrlButtons)
 {
     return(MessageBoxModule.Show(owner, messageBoxText, caption, ctrlButtons));
 }
示例#6
0
 /// <summary>
 /// 在指定窗口的前面显示消息框。该消息框显示消息并返回结果。
 /// </summary>
 /// <param name="owner">一个 <see cref="System.Windows.Window"/>,表示消息框的所有者窗口。</param>
 /// <param name="messageBoxText">一个 <see cref="System.String"/>,用于指定要显示的文本。</param>
 /// <returns> 一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
 public static MessageBoxResult Show(Window owner, string messageBoxText)
 {
     return(MessageBoxModule.Show(owner, messageBoxText));
 }
示例#7
0
 /// <summary>
 /// 显示一个消息框,该消息框包含消息、标题栏标题和按钮,并且返回结果。
 /// </summary>
 /// <param name="messageBoxText">一个 <see cref="System.String"/>,用于指定要显示的文本。</param>
 /// <param name="caption"> 一个 <see cref="System.String"/>,用于指定要显示的标题栏标题。</param>
 /// <param name="button">一个 <see cref="System.Windows.MessageBoxButton"/> 值,用于指定要显示哪个按钮或哪些按钮。</param>
 /// <returns>一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
 public static MessageBoxResult Show(string messageBoxText, string caption, MessageBoxButton button)
 {
     return(MessageBoxModule.Show(messageBoxText, caption, button));
 }
示例#8
0
 /// <summary>
 /// 显示一个消息框,该消息框包含消息并返回结果。
 /// </summary>
 /// <param name="messageBoxText">一个 System.String,用于指定要显示的文本。</param>
 /// <returns>一个 <see cref="System.Windows.MessageBoxResult"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
 public static MessageBoxResult Show(string messageBoxText)
 {
     return(MessageBoxModule.Show(messageBoxText));
 }