⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assemblyscoutcommands.cs

📁 SharpDevelop2.0.0 c#开发免费工具
💻 CS
字号:
// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Georg Brandl" email="g.brandl@gmx.net"/>
//     <version value="$version"/>
// </file>

using System;
using System.IO;
using System.Collections;
using System.Resources;
using System.Windows.Forms;

using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Project;
using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Commands;

using ICSharpCode.SharpDevelop.AddIns.AssemblyScout;

namespace ICSharpCode.SharpDevelop.AddIns.AssemblyScout.Commands
{
	public class LoadAssemblyCommand : AssemblyScoutCommand
	{
		public override void Run()
		{
			AssemblyScoutViewContent vc = GetViewContent();
			if (vc == null) return;
			
			vc.Tree.LoadAssembly(null, null);
		}
	}
	
	public class LoadRefAssembliesCommand : AssemblyScoutCommand
	{
		public override void Run()
		{
			AssemblyScoutViewContent vc = GetViewContent();
			if (vc == null) return;
			
			vc.LoadRefAssemblies();
		}
		
	}
	
	public class LoadStdAssembliesCommand : AssemblyScoutCommand
	{
		public override void Run()
		{
			AssemblyScoutViewContent vc = GetViewContent();
			if (vc == null) return;
			
			vc.LoadStdAssemblies();
		}
		
	}
	
	public class BackCommand : AssemblyScoutCommand
	{
		public override void Run()
		{
			AssemblyScoutViewContent vc = GetViewContent();
			if (vc == null) return;
			
			vc.Tree.GoBack();
		}
		
	}
	
	public class AssemblyScoutCommand : AbstractMenuCommand
	{
		protected AssemblyScoutViewContent GetViewContent()
		{
			IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
			
			return (window.ViewContent as AssemblyScoutViewContent);
		}
		
		public override void Run()
		{
			
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -