using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
|
namespace Shared
|
{
|
/// <summary>
|
/// 指令集合
|
/// </summary>
|
public static class CommandList
|
{
|
private static List<Command> commandList = new List<Command>();
|
static CommandList()
|
{
|
Array commands = Enum.GetValues(typeof(Command));
|
foreach (object command in commands)
|
{
|
commandList.Add((Command)command);
|
}
|
}
|
|
/// <summary>
|
/// 获取所有的枚举列表
|
/// </summary>
|
public static List<Command> GetCommandList
|
{
|
get
|
{
|
return commandList;
|
}
|
private set { commandList = value; }
|
}
|
}
|
}
|