internal static string GetHelpUrlFromPage(ExchangePage page) { ExchangeForm exchangeForm = page.ParentForm as ExchangeForm; string result; if (exchangeForm == null || string.IsNullOrEmpty(exchangeForm.HelpTopic)) { result = Microsoft.Exchange.CommonHelpProvider.HelpProvider.ConstructHelpRenderingUrl(page.HelpTopic).ToString(); } else { result = Microsoft.Exchange.CommonHelpProvider.HelpProvider.ConstructHelpRenderingUrl(exchangeForm.HelpTopic).ToString(); } return(result); }
public static void ShowHelpFromPage(ExchangePage page) { string helpUrlFromPage = ExchangeHelpService.GetHelpUrlFromPage(page); ExchangeHelpService.ShowHelpFromUrl(page, helpUrlFromPage); }