Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="text"></param>
 /// <param name="caption"></param>
 /// <param name="buttons"></param>
 /// <param name="icon"></param>
 /// <param name="defButton"></param>
 /// <returns></returns>
 public static DialogResult Show(Form owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defButton)
 {
     if (owner != null)
     {
         MessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption, buttons, icon, defButton));
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="text"></param>
 /// <param name="caption"></param>
 /// <returns></returns>
 public static DialogResult Show(Form owner, String text, String caption)
 {
     if (owner != null)
     {
         MessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption));
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="text"></param>
 /// <param name="caption"></param>
 /// <param name="buttons"></param>
 /// <param name="icon"></param>
 /// <param name="defaultButton"></param>
 /// <param name="options"></param>
 /// <param name="helpFilePath"></param>
 /// <param name="navigator"></param>
 /// <param name="param"></param>
 /// <returns></returns>
 public static DialogResult Show(Form owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, Object param)
 {
     if (owner != null)
     {
         MessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator, param));
 }
Exemplo n.º 4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="text"></param>
 /// <param name="caption"></param>
 /// <param name="buttons"></param>
 /// <param name="icon"></param>
 /// <param name="defaultButton"></param>
 /// <param name="options"></param>
 /// <param name="helpFilePath"></param>
 /// <param name="keyword"></param>
 /// <returns></returns>
 public static DialogResult Show(Form owner, String text, String caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, String helpFilePath, String keyword)
 {
     if (owner != null)
     {
         MessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, keyword));
 }
Exemplo n.º 5
0
        /*------------------------------------
        * MessageBox自动显示在父窗体的中心位置
        * ----------------------------------*/

        public static DialogResult Show(Form owner, String msg)
        {
            if (owner != null)
            {
                MessageBoxPlusHelp.MessageBoxCenterTask(owner);
            }
            return(MessageBox.Show(msg));
        }
Exemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="owner"></param>
 /// <param name="text"></param>
 /// <param name="caption"></param>
 /// <param name="buttons"></param>
 /// <returns></returns>
 public static DialogResult Show(Form owner, String text, String caption, MessageBoxButtons buttons)
 {
     MessageBoxPlusHelp.MessageBoxCenterTask(owner);
     return(MessageBox.Show(text, caption, buttons));
 }