public override void Execute(object parameter) { IMemberTreeNode node = MainWindow.Instance.SelectedNodes.First() as IMemberTreeNode; ILViewerView win = new ILViewerView(node, ILCode.Get(node.Member)); win.ShowDialog(); }
public void Execute(TextViewContext context) { if (context.SelectedTreeNodes != null) { IMemberTreeNode node = context.SelectedTreeNodes.First() as IMemberTreeNode; ILViewerView win = new ILViewerView(node, ILCode.Get(node.Member)); win.ShowDialog(); } }