Ejemplo n.º 1
0
        /// <summary>
        /// Register changes on elements in given <see cref="VSProject" />.
        /// </summary>
        /// <param name="project">Project where changes are listened.</param>
        /// <param name="handler">Handler fired when element is changed.</param>
        public void RegisterElementChange(VSProject project, ElementNodeHandler handler)
        {
            var manager = findProjectManager(project.Project);

            if (manager != null)
            {
                manager.ElementChanged += handler;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Registers the remove handler.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal void RegisterRemoveHandler(ElementNodeHandler handler)
 {
     ElementRemoved += handler;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Registers the change handler.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal void RegisterChangeHandler(ElementNodeHandler handler)
 {
     ElementChanged += handler;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Registers the add handler.
 /// </summary>
 /// <param name="handler">The handler.</param>
 internal void RegisterAddHandler(ElementNodeHandler handler)
 {
     ElementAdded += handler;
 }