ShowHelpLocal() private static method

private static ShowHelpLocal ( string strTopic, string strSection ) : void
strTopic string
strSection string
return void
Exemplo n.º 1
0
 /// <summary>
 /// Show a help page.
 /// </summary>
 /// <param name="strTopic">Topic name. May be <c>null</c>.</param>
 /// <param name="strSection">Section name. May be <c>null</c>. Must not start
 /// with the '#' character.</param>
 /// <param name="bPreferLocal">Specify if the local help file should be
 /// preferred. If no local help file is available, the online help
 /// system will be used, independent of the <c>bPreferLocal</c> flag.</param>
 public static void ShowHelp(string strTopic, string strSection, bool bPreferLocal)
 {
     if (AppHelp.LocalHelpAvailable)
     {
         if (bPreferLocal || (AppHelp.PreferredHelpSource == AppHelpSource.Local))
         {
             AppHelp.ShowHelpLocal(strTopic, strSection);
         }
         else
         {
             AppHelp.ShowHelpOnline(strTopic, strSection);
         }
     }
     else
     {
         AppHelp.ShowHelpOnline(strTopic, strSection);
     }
 }