public override void Run() { ICSharpCode.SharpDevelop.Gui.TaskView view = (TaskView)Owner; foreach (Task t in new List <Task>(view.SelectedTasks)) { if (t.BuildError == null) { continue; } string code = t.BuildError.ErrorCode; if (string.IsNullOrEmpty(code)) { return; } if (Help3Environment.IsHelp3ProtocolRegistered) { LoggingService.Debug(string.Format("Help 3.0: Getting description of \"{0}\"", code)); if (Help3Environment.IsLocalHelp) { DisplayHelp.Keywords(code); } else { DisplayHelp.ContextualHelp(code); } } else { LoggingService.Error("Help 3.0: Help system ist not initialized"); } } }
public override void Run() { var view = (System.Windows.Controls.ListView)Owner; foreach (var t in view.SelectedItems.OfType <SDTask>().ToArray()) { if (t.BuildError == null) { continue; } string code = t.BuildError.ErrorCode; if (string.IsNullOrEmpty(code)) { return; } if (Help3Environment.IsHelp3ProtocolRegistered) { LoggingService.Debug(string.Format("HelpViewer: Getting description of \"{0}\"", code)); if (Help3Environment.IsLocalHelp) { DisplayHelp.Keywords(code); } else { DisplayHelp.ContextualHelp(code); } } else { LoggingService.Error("HelpViewer: Help system ist not initialized"); } } }
public override bool TryShowHelpByKeyword(string keyword) { if (string.IsNullOrEmpty(keyword)) { throw new ArgumentNullException("keyword"); } LoggingService.Info(string.Format("HelpViewer: TryShowHelpByKeyword calls \"{0}\"", keyword)); DisplayHelp.Keywords(keyword); return(true); }
public override bool TryShowHelpByKeyword(string keyword) { if (string.IsNullOrEmpty(keyword)) { throw new ArgumentNullException("keyword"); } LoggingService.Info(string.Format("Help 3.0: Calling \"TryShowHelpByKeyword\" with {0}", keyword)); DisplayHelp.Keywords(keyword); return(true); }