public AnnotationsWindow(IAnnotationsController annotationsController, 
            ISourceCodeController sourceCodeController)
        {
            this.annotationsController = annotationsController;
            this.sourceCodeController = sourceCodeController;
            
            InitializeComponent();

            annotationsController.PropertyChanged += (s, e) =>
            {
                if (e.PropertyName == "Annotations")
                    PopulateListView();
            };

            showErrorsToolStripButton.Click += (s, e) => annotationsController.ShowErrors(showErrorsToolStripButton.Checked);
            showErrorsToolStripButton.DataBindings.Add("Text", annotationsController, "ErrorsText");

            showWarningsToolStripButton.Click += (s, e) => annotationsController.ShowWarnings(showWarningsToolStripButton.Checked);
            showWarningsToolStripButton.DataBindings.Add("Text", annotationsController, "WarningsText");

            showInfoToolStripButton.Click += (s, e) => annotationsController.ShowInfos(showInfoToolStripButton.Checked);
            showInfoToolStripButton.DataBindings.Add("Text", annotationsController, "InfoText");
        }