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;
 }
Example #3
0
 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;
         }
     }
 }
Example #4
0
        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);
 }
Example #7
0
        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);
        }
Example #8
0
 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));
 }
Example #9
0
 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));
 }