public void Execute(SharpTreeNode[] selectedNodes) { var assemblyDefinitions = selectedNodes .OfType <AssemblyTreeNode>() .Select(n => Converter.Assembly(n.LoadedAssembly.AssemblyDefinition)) .ToList(); Services.BrowseAssemblies(assemblyDefinitions); }
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 }