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();
        }
Пример #2
0
 public static void RemoveDependencyBrowser(DependencyBrowserWindow window)
 {
     _dependencyBrowsers.Remove(window);
     ClearCacheIfPossible();
     GC.Collect();
 }
Пример #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();
        }
Пример #4
0
 public static void AddDependencyBrowser(DependencyBrowserWindow window)
 {
     _dependencyBrowsers.Add(window);
 }