Beispiel #1
0
 private void JustDecompileCecilStudioPackageHandleItemRequest(object sender, EventArgs e)
 {
     if (this.selectedItem != null)
     {
         ActiveHandler = ReflexilWindow.HandleItem(this.selectedItem);
     }
 }
Beispiel #2
0
        public ILSpyPackage()
        {
            PluginFactory.Register(new ILSpyPlugin(this));

            ReflexilWindow = new ReflexilWindow(useMergedAssemblyModuleHandler: true);

            WireEvents();

            ReflexilWindow.HandleItem(ActiveItem);
        }
Beispiel #3
0
        private void SetReflexilHandler(ITreeViewItem selectedTreeItem)
        {
            this.selectedItem = selectedTreeItem;

            if (!this.IsReflexilHostLoaded)
            {
                return;
            }
            if (this.selectedItem != null)
            {
                if (!ReflexilWindow.Visible)
                {
                    ReflexilWindow.Visible = true;
                }
                ActiveHandler = ReflexilWindow.HandleItem(this.selectedItem);
            }
            else
            {
                ReflexilWindow.Visible = false;
            }
        }
Beispiel #4
0
        public void Initialize()
        {
            _justDecompilePlugin = new JustDecompilePlugin(this);
            PluginFactory.Register(_justDecompilePlugin);
            ReflexilWindow = new ReflexilWindow();

            var moduleDefinitionTreeViewContextMenu = new ModuleDefinitionTreeViewContextMenu();
            var memberTreeViewContextMenu           = new MemberTreeViewContextMenu();

            _regionManager.AddToRegion(ToolMenuRegion, new JustDecompileToolMenuItem(() => MainButtonClick(this, EventArgs.Empty)));
            _regionManager.AddToRegion(AssemblyTreeViewContextMenuRegion, moduleDefinitionTreeViewContextMenu);
            _regionManager.AddToRegion(TypeTreeViewContextMenuRegion, new TypeTreeViewContextMenu());
            _regionManager.AddToRegion(ResourceTreeViewContextMenuRegion, memberTreeViewContextMenu);
            _regionManager.AddToRegion(EmbeddedResourceTreeViewContextMenuRegion, memberTreeViewContextMenu);
            _regionManager.AddToRegion(AssemblyReferenceTreeViewContextMenuRegion, memberTreeViewContextMenu);
            _regionManager.AddToRegion(MemberTreeViewContextMenuRegion, memberTreeViewContextMenu);
            _regionManager.AddToRegion(ModuleDefinitionTreeViewContextMenuRegion, moduleDefinitionTreeViewContextMenu);

            WireTreeViewEvents();
            WireAssemblyEvents();

            ReflexilWindow.HandleItem(ActiveItem);
        }
Beispiel #5
0
 protected virtual void ActiveItemChanged(object sender, EventArgs e)
 {
     // Try to validate in order to not loose any alteration
     ReflexilWindow.ValidateChildren(ValidationConstraints.Enabled);
     ActiveHandler = ReflexilWindow.HandleItem(ActiveItem);
 }
 /// <summary>
 /// Browser active item changed
 /// </summary>
 /// <param name="sender">Event sender</param>
 /// <param name="e">Event parameters</param>
 protected virtual void ActiveItemChanged(object sender, EventArgs e)
 {
     activehandler = reflexilwindow.HandleItem(ActiveItem);
 }