Esempio n. 1
0
        public ILViewerView(IMemberTreeNode node, string ilCode)
        {
            InitializeComponent();

            Title         = $"IL code: {node.Member.FullName}";
            tbIlCode.Text = ilCode;
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        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();
            }
        }