CrabtreeOn,印度客户定制APP,迁移2.0平台版本
JLChen
2022-01-12 407fae6f07a2a982a2a814c2f145c40733c966cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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; }
        }
    }
}