|
|
@ -62,9 +62,11 @@ namespace ICSharpCode.ILSpy.Commands |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (nodes.Length == 0) |
|
|
|
if (nodes.Length == 0) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
var title = string.Join(", ", nodes.Select(x => x.ToString())); |
|
|
|
var title = string.Join(", ", nodes.Select(x => x.ToString())); |
|
|
|
DockWorkspace.Instance.Documents.Add(new ViewModels.DecompiledDocumentModel(title, title) { Language = MainWindow.Instance.CurrentLanguage, LanguageVersion = MainWindow.Instance.CurrentLanguageVersion }); |
|
|
|
DockWorkspace.Instance.Documents.Add(new ViewModels.DecompiledDocumentModel(title, title) { Language = MainWindow.Instance.CurrentLanguage, LanguageVersion = MainWindow.Instance.CurrentLanguageVersion }); |
|
|
|
DockWorkspace.Instance.ActiveDocument = DockWorkspace.Instance.Documents.Last(); |
|
|
|
DockWorkspace.Instance.ActiveDocument = DockWorkspace.Instance.Documents.Last(); |
|
|
|
|
|
|
|
MainWindow.Instance.SelectNodes(nodes); |
|
|
|
MainWindow.Instance.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, (Action)delegate { |
|
|
|
MainWindow.Instance.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, (Action)delegate { |
|
|
|
DockWorkspace.Instance.GetTextView().DecompileAsync(MainWindow.Instance.CurrentLanguage, nodes, new DecompilationOptions()); |
|
|
|
DockWorkspace.Instance.GetTextView().DecompileAsync(MainWindow.Instance.CurrentLanguage, nodes, new DecompilationOptions()); |
|
|
|
}); |
|
|
|
}); |
|
|
|