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); } }
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); } }
void result_OnChildRemoved(object sender, HierarchyNodeEventArgs e) { compilerManager.RemoveReference((ReferenceNode)e.Child); }
private void PackageReferenceContainerNode_OnChildAdded(object sender, HierarchyNodeEventArgs e) { ; }
private void RefsOnOnChildListChanged(object sender, HierarchyNodeEventArgs hierarchyNodeEventArgs) { _provider.References = GetReferences(_references); }