예제 #1
0
 protected virtual void OnExpand()
 {
     if (this.IsSnapInRootNode)
     {
         ExchangeHelpService.Initialize();
     }
 }
예제 #2
0
 private void ResultPane_HelpRequested(object sender, HelpEventArgs hevent)
 {
     if (!hevent.Handled && !string.IsNullOrEmpty(base.ScopeNode.HelpTopic))
     {
         ExchangeHelpService.ShowHelpFromHelpTopicId(base.ScopeNode.HelpTopic);
         hevent.Handled = true;
     }
 }
예제 #3
0
 private static void ShowHelpFromUrl(Control control, string helpUrl)
 {
     if (!string.IsNullOrEmpty(helpUrl))
     {
         ExTraceGlobals.ProgramFlowTracer.TraceFunction <string>(0L, "*--ExchangeHelpService.ShowHelpFromUrl: {0}", helpUrl);
         string url = helpUrl.Substring(helpUrl.IndexOf("http"));
         ExchangeHelpService.ieHelper.NavigateInSingleIE(url, ExchangeHelpService.GetUIService(control));
     }
 }
예제 #4
0
        private void HelpCallBack(object o)
        {
            ScopeNode scopeNode = o as ScopeNode;
            string    helpTopic;

            if (scopeNode != null)
            {
                helpTopic = scopeNode.HelpTopic;
            }
            else
            {
                helpTopic = (o as SelectionData).HelpTopic;
            }
            ExchangeHelpService.ShowHelpFromHelpTopicId(helpTopic);
        }
예제 #5
0
 protected override void OnDoRefreshWork(RefreshRequestEventArgs e)
 {
     this.progress = new RefreshRequestEventArgsToIProgressAdapter(e);
     try
     {
         this.ResetStatus();
         PSConnectionInfoSingleton.GetInstance().ReportProgress = this.progress;
         PSConnectionInfoSingleton.GetInstance().GetMonadConnectionInfo();
         this.progress.ReportProgress(50, 100, Strings.ProgressReportInitializeHelpService, Strings.ProgressReportInitializeHelpServiceErrorText);
         ExchangeHelpService.Initialize();
         this.erc          = CmdletBasedRunspaceConfiguration.Create(PSConnectionInfoSingleton.GetInstance().GetMonadConnectionInfo(), PSConnectionInfoSingleton.GetInstance().UserAccount, this.progress);
         this.TenantDomain = ((this.erc.LogonUserLiveID == SmtpAddress.Empty) ? null : this.erc.LogonUserLiveID.Domain);
     }
     finally
     {
         this.progress.ReportProgress(100, 100, Strings.ProgressReportEnd, string.Empty);
         PSConnectionInfoSingleton.GetInstance().ReportProgress = null;
     }
     base.OnDoRefreshWork(e);
 }
예제 #6
0
 private static void ShowHelpFromUrl(string helpUrl)
 {
     ExchangeHelpService.ShowHelpFromUrl(null, helpUrl);
 }
예제 #7
0
        public static void ShowHelpFromPage(ExchangePage page)
        {
            string helpUrlFromPage = ExchangeHelpService.GetHelpUrlFromPage(page);

            ExchangeHelpService.ShowHelpFromUrl(page, helpUrlFromPage);
        }
예제 #8
0
        public static void ShowHelpFromHelpTopicId(Control control, string helpTopicId)
        {
            string helpUrlForTopic = ExchangeHelpService.GetHelpUrlForTopic(helpTopicId);

            ExchangeHelpService.ShowHelpFromUrl(control, helpUrlForTopic);
        }
예제 #9
0
 public static void ShowHelpFromHelpTopicId(string helpTopicId)
 {
     ExchangeHelpService.ShowHelpFromHelpTopicId(null, helpTopicId);
 }