I am going off the list here. I want to be notified when the solution or project changes. I started with this code and added to it.
public void Watch()
{
DTE dte = Package.GetGlobalService(typeof(SDTE)) as DTE;
dte.Events.SolutionEvents.Opened += SolutionEvents_Opened;
dte.Events.TextEditorEvents.LineChanged += TextEditorEvents_LineChanged;
dte.Events.WindowEvents.WindowMoved += WindowEvents_WindowMoved;
}
private void WindowEvents_WindowMoved(Window Window, int Top, int Left, int Width, int Height)
{
System.Windows.Forms.MessageBox.Show("1-->");
}
private void TextEditorEvents_LineChanged(TextPoint StartPoint, TextPoint EndPoint, int Hint)
{
System.Windows.Forms.MessageBox.Show("2-->");
}
private void SolutionEvents_Opened()
{
System.Windows.Forms.MessageBox.Show("3-->");
}
But only WindowEvents_WindowMoved ever fires. Am I doing something wrong?