Telerik® JustDecompile™ by Progress

This class provides a push notification to all of the clients subscribers when the selected node in JustDecompile assembly list navigation tree changes.

Syntax:

CopyC#
public class SelectedTreeViewItemChangedEvent : CompositePresentationEvent<ITreeViewItem>
{
}
CopyVB.NET
Public Class SelectedTreeViewItemChangedEvent
        Inherits CompositePresentationEvent(Of ITreeViewItem)
End Class

Example:

CopyC#
public void OnImportsSatisfied()
{
    this.eventAggregator.GetEvent<SelectedTreeViewItemChangedEvent>().Subscribe(OnTreeViewItemCollectionChangedEvent);
}

private void OnTreeViewItemCollectionChangedEvent(ITreeViewItem selectedTreeItem)
{
    this.selectedTreeItem = selectedTreeItem;
}
CopyVB.NET
Public Sub OnImportsSatisfied()
    Me.eventAggregator.GetEvent(Of SelectedTreeViewItemChangedEvent)().Subscribe(New Action(Of ITreeViewItem)(AddressOf OnTreeViewItemCollectionChangedHandler))
End Sub

Private Sub OnTreeViewItemCollectionChangedEvent(selectedTreeItem As ITreeViewItem)
    Me.selectedTreeItem = selectedTreeItem
End Sub

The ITreeViewItem instance provided by the event designates the new selected node in the assembly list navigation tree. By exploring its TreeNodeType property, you can safely cast the instance to one of the following types: