public void Execute(TextViewContext context)
        {
            var assemblyDefinitions = context.SelectedTreeNodes
                .OfType<AssemblyTreeNode>()
                .Select(n => n.LoadedAssembly.AssemblyDefinition);

            var window = new DependencyBrowserWindow(assemblyDefinitions.Select(HAL.Converter.Assembly))
            {
                Owner = Services.MainWindow
            };
            window.Show();
        }
Exemplo n.º 2
0
        private void BrowseDependenciesHandler(object sender, EventArgs e)
        {
            var item = _assemblyBrowser.ActiveItem as IAssembly;

            var window = new DependencyBrowserWindow(new [] { HAL.Converter.Assembly(item) });
            System.Windows.Forms.Integration.ElementHost.EnableModelessKeyboardInterop(window);
            window.Show();
        }