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 TryShowHelp(string fullTypeName) { if (string.IsNullOrEmpty(fullTypeName)) { throw new ArgumentNullException("fullTypeName"); } LoggingService.Info(string.Format("HelpViewer: TryShowHelp calls \"{0}\"", fullTypeName)); return(DisplayHelp.ContextualHelp(fullTypeName)); }
public override bool TryShowHelp(string fullTypeName) { if (string.IsNullOrEmpty(fullTypeName)) { throw new ArgumentNullException("fullTypeName"); } LoggingService.Info(string.Format("Help 3.0: Calling \"TryShowHelp\" with {0}", fullTypeName)); return(DisplayHelp.ContextualHelp(fullTypeName)); }