Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: dd25fb6ebd
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (32 sloc) 0.951 kb
using Microsoft.VisualStudio.Shell;
public class MessageDisplayer
{
ErrorListProvider errorProvider;
public MessageDisplayer()
{
}
public MessageDisplayer(ErrorListProvider errorProvider)
{
this.errorProvider = errorProvider;
}
public virtual void ShowError(string error)
{
var errorTask = new ErrorTask
{
Category = TaskCategory.Misc,
Text = error,
CanDelete = true,
};
errorProvider.Tasks.Add(errorTask);
}
public virtual void ShowInfo(string info)
{
var task = new Task
{
Category = TaskCategory.Misc,
Text = info,
CanDelete = true,
};
errorProvider.Tasks.Add(task);
}
}
Jump to Line
Something went wrong with that request. Please try again.