Exemple #1
0
        public void Execute(SharpTreeNode[] selectedNodes)
        {
            var assemblyDefinitions = selectedNodes
                                      .OfType <AssemblyTreeNode>()
                                      .Select(n => Converter.Assembly(n.LoadedAssembly.AssemblyDefinition))
                                      .ToList();

            Services.BrowseAssemblies(assemblyDefinitions);
        }
Exemple #2
0
        public void Execute(TextViewContext context)
        {
            var assemblyDefinitions = context.SelectedTreeNodes
                                      .OfType <AssemblyTreeNode>()
                                      .Select(n => Converter.Assembly(n.LoadedAssembly.AssemblyDefinition))
                                      .ToList();

            Services.BrowseAssemblies(assemblyDefinitions);
        }
        private void WindowDrop(object sender, DragEventArgs e)
        {
#if ILSpy
            var assemblyFilePaths = e.Data.GetData("ILSpyAssemblies") as string[];
            foreach (var assemblyFilePath in assemblyFilePaths)
            {
                var loadedAssembly =
                    Services.MainWindow.CurrentAssemblyList.OpenAssembly(assemblyFilePath);

                ViewModel.AddAssembly(Converter.Assembly(loadedAssembly.GetAssemblyDefinitionAsync().Result));
            }
#endif
        }