/// <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)); }
/// <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)); }
/// <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)); }
/// <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)); }
/*------------------------------------ * MessageBox自动显示在父窗体的中心位置 * ----------------------------------*/ public static DialogResult Show(Form owner, String msg) { if (owner != null) { MessageBoxPlusHelp.MessageBoxCenterTask(owner); } return(MessageBox.Show(msg)); }
/// <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)); }