private void BrowseAncestryHandler(object sender, EventArgs e) { var item = _assemblyBrowser.ActiveItem as ITypeDeclaration; var window = new AncestryBrowserWindow(HAL.Converter.Type(item)); System.Windows.Forms.Integration.ElementHost.EnableModelessKeyboardInterop(window); window.Show(); }
public static void BrowseAncestry(TypeInfo type) { var window = new AncestryBrowserWindow(type); #if ILSpy window.Owner = MainWindow; #elif Reflector System.Windows.Forms.Integration.ElementHost.EnableModelessKeyboardInterop(window); #endif window.Show(); }
public void Execute(TextViewContext context) { var typeDefinition = context.SelectedTreeNodes .OfType<TypeTreeNode>() .Single().TypeDefinition; var window = new AncestryBrowserWindow(HAL.Converter.Type(typeDefinition)) { Owner = MainWindow.Instance }; window.Show(); }
public void Execute(SharpTreeNode[] selectedNodes) { var typeDefinition = selectedNodes .OfType<TypeTreeNode>() .Single().TypeDefinition; var window = new AncestryBrowserWindow(HAL.Converter.Type(typeDefinition)) { Owner = MainWindow.Instance }; window.Show(); }
public static void RemoveAncestryBrowser(AncestryBrowserWindow window) { _ancestryBrowsers.Remove(window); ClearCacheIfPossible(); GC.Collect(); }
public static void AddAncestryBrowser(AncestryBrowserWindow window) { _ancestryBrowsers.Add(window); }