testtreeviewcontextmenucommands.cs

来自「c#源代码」· CS 代码 · 共 55 行

CS
55
字号
// <file>
//     <copyright see="prj:///doc/copyright.txt"/>
//     <license see="prj:///doc/license.txt"/>
//     <owner name="Mike Krueger" email="mike@icsharpcode.net"/>
//     <version value="$version"/>
// </file>
using System;
using System.Windows.Forms;

using ICSharpCode.Core.AddIns.Codons;

namespace ICSharpCode.NUnitPad
{
	/// <summary>
	/// Description of RunTestsCommand
	/// </summary>
	public class RunTestsCommand : AbstractMenuCommand
	{
		/// <summary>
		/// Creates a new RunTestsCommand
		/// </summary>
		public RunTestsCommand()
		{
		}
	
		/// <summary>
		/// Starts the command
		/// </summary>
		public override void Run()
		{
			((TestTreeView)Owner).RunTests();
		}
	}
	/// <summary>
	/// Description of GotoDefinitionCommand
	/// </summary>
	public class GotoDefinitionCommand : AbstractMenuCommand
	{
		/// <summary>
		/// Creates a new GotoDefinitionCommand
		/// </summary>
		public GotoDefinitionCommand()
		{
		}
	
		/// <summary>
		/// Starts the command
		/// </summary>
		public override void Run()
		{
			((TestTreeView)Owner).GotoDefinition();
		}
	}
}

⌨️ 快捷键说明

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