Пример #1
0
        private void OnReferenceChanged(object sender, HierarchyNodeEventArgs args)
        {
            // Check if there is any sink for this event.
            if (null == ReferenceChanged)
            {
                return;
            }

            // The sender of this event should be the reference node that was changed
            ReferenceNode refNode = sender as ReferenceNode;

            if (null == refNode)
            {
                return;
            }


            // Check that the removed item implements the Reference interface.
            Reference reference = refNode.Object as Reference;

            if (null != reference)
            {
                ReferenceChanged(reference);
            }
        }
Пример #2
0
        private void OnReferenceRemoved(object sender, HierarchyNodeEventArgs args)
        {
            // Validate the parameters.
            if ((this._container != sender as ReferenceContainerNode) ||
                (null == args) || (null == args.Child))
            {
                return;
            }

            // Check if there is any sink for this event.
            if (null == ReferenceRemoved)
            {
                return;
            }

            // Check that the removed item implements the Reference interface.
            if (args.Child.Object is Reference reference)
            {
                ReferenceRemoved(reference);
            }
        }
Пример #3
0
 void result_OnChildRemoved(object sender, HierarchyNodeEventArgs e)
 {
     compilerManager.RemoveReference((ReferenceNode)e.Child);
 }
 private void PackageReferenceContainerNode_OnChildAdded(object sender, HierarchyNodeEventArgs e)
 {
     ;
 }
Пример #5
0
 private void RefsOnOnChildListChanged(object sender, HierarchyNodeEventArgs hierarchyNodeEventArgs)
 {
     _provider.References = GetReferences(_references);
 }