nocmd.cs

来自「VC#里面的东西,大家可以看看」· CS 代码 · 共 21 行

CS
21
字号
using System;
using System.Windows.Forms;
namespace Chain
{
	/// <summary>
	/// handles command that is not otherwise legal
	/// </summary>
	public class NoCmd :Chain 	{
		private ListBox lsNocmd;	//commands go here
		//-----
		public NoCmd(ListBox lb) 		{
			lsNocmd = lb;			//copy reference
		}
		//-----
		public override void sendToChain(string mesg) {
			//adds unknown commands to list box
			lsNocmd.Items.Add (mesg);
		}
	}
}

⌨️ 快捷键说明

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