private static void PopHelpInfo() { if (helpInfoTable != null) { if (helpInfoTable.Length == 1) { helpInfoTable = null; } else { int length = helpInfoTable.Length - 1; System.Windows.Forms.HelpInfo[] destinationArray = new System.Windows.Forms.HelpInfo[length]; Array.Copy(helpInfoTable, destinationArray, length); helpInfoTable = destinationArray; } } }
private static void PushHelpInfo(System.Windows.Forms.HelpInfo hpi) { System.Windows.Forms.HelpInfo[] infoArray; int length = 0; if (helpInfoTable == null) { infoArray = new System.Windows.Forms.HelpInfo[length + 1]; } else { length = helpInfoTable.Length; infoArray = new System.Windows.Forms.HelpInfo[length + 1]; Array.Copy(helpInfoTable, infoArray, length); } infoArray[length] = hpi; helpInfoTable = infoArray; }
public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { System.Windows.Forms.HelpInfo hpi = new System.Windows.Forms.HelpInfo(helpFilePath, navigator, param); return ShowCore(owner, text, caption, buttons, icon, defaultButton, options, hpi); }
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword) { System.Windows.Forms.HelpInfo hpi = new System.Windows.Forms.HelpInfo(helpFilePath, keyword); return ShowCore(null, text, caption, buttons, icon, defaultButton, options, hpi); }
private static DialogResult ShowCore(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, System.Windows.Forms.HelpInfo hpi) { DialogResult none = DialogResult.None; try { PushHelpInfo(hpi); none = ShowCore(owner, text, caption, buttons, icon, defaultButton, options, true); } finally { PopHelpInfo(); } return(none); }
public static DialogResult Show(IWin32Window owner, string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, HelpNavigator navigator, object param) { System.Windows.Forms.HelpInfo hpi = new System.Windows.Forms.HelpInfo(helpFilePath, navigator, param); return(ShowCore(owner, text, caption, buttons, icon, defaultButton, options, hpi)); }
public static DialogResult Show(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options, string helpFilePath, string keyword) { System.Windows.Forms.HelpInfo hpi = new System.Windows.Forms.HelpInfo(helpFilePath, keyword); return(ShowCore(null, text, caption, buttons, icon, defaultButton, options, hpi)); }