Beispiel #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)
     {
         CMessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption, buttons, icon, defButton));
 }
Beispiel #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)
     {
         CMessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption));
 }
Beispiel #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="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)
     {
         CMessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, keyword));
 }
Beispiel #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="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)
     {
         CMessageBoxPlusHelp.MessageBoxCenterTask(owner);
     }
     return(MessageBox.Show(text, caption, buttons, icon, defaultButton, options, helpFilePath, navigator, param));
 }
Beispiel #5
0
        /*------------------------------------
        * MessageBox自动显示在父窗体的中心位置
        * ----------------------------------*/

        public static DialogResult Show(Form owner, String msg)
        {
            if (owner != null)
            {
                CMessageBoxPlusHelp.MessageBoxCenterTask(owner);
            }
            return(MessageBox.Show(msg));
        }