public void Add(IGooseErrorTask error) { error.Error.HierarchyItem = this.FindHierarchyItem(error.Error.Document); error.Error.Navigate += (s, a) => { var task = (ErrorTask) s; this.Navigate(task, new Guid(EnvDTE.Constants.vsViewKindCode)); }; this.Tasks.Add(error.Error); }
public void Remove(IGooseErrorTask error) { this.Tasks.Remove(error.Error); }