コード例 #1
0
        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();
        }
コード例 #2
0
 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();
 }
コード例 #3
0
        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();
        }
コード例 #4
0
        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();
        }
コード例 #5
0
 public static void RemoveAncestryBrowser(AncestryBrowserWindow window)
 {
     _ancestryBrowsers.Remove(window);
     ClearCacheIfPossible();
     GC.Collect();
 }
コード例 #6
0
 public static void AddAncestryBrowser(AncestryBrowserWindow window)
 {
     _ancestryBrowsers.Add(window);
 }