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();
        }
 public static void RemoveDependencyBrowser(DependencyBrowserWindow window)
 {
     _dependencyBrowsers.Remove(window);
     ClearCacheIfPossible();
     GC.Collect();
 }
Example #3
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();
        }
 public static void AddDependencyBrowser(DependencyBrowserWindow window)
 {
     _dependencyBrowsers.Add(window);
 }