public string ProcessCommonCommand(Arguments args)
        {
            int value = 0;

            switch (args[0])
            {
            case "--status":
                return(string.Format(LANG_MSG_STATUS, (string)(IsRecording ? LANG_RUNNING : LANG_STOP), GetHistoryList().Count, Capacity));

            case "--disable":
                IsRecording = false;
                Clear();
                UserIdGenerator.Clear();
                return(LANG_MSG_DISABLE);

            case "--start":
                IsRecording = true;
                return(LANG_MSG_START);

            case "--realloc":
                if (args.Count < 2)
                {
                    return(LANG_MSG_REALLOC_ERR);
                }
                else
                {
                    int.TryParse(args[1], out value);
                    Capacity = value;
                    return(string.Format(LANG_MSG_REALLOC, Capacity));
                }

            case "--i":     //鸽一会
                return(LANG_MSG_NOTIMPLENT);

            case "--u":     //鸽一会
                return(LANG_MSG_NOTIMPLENT);

            case "--recently":
                return(EnumRecentUser().Result);

            default:
                return(LANG_MSG_UNKNOWNCOMMAND);
            }
        }
 public void Update(string userName, string message)
 {
     historyList.Add(new Record(UserIdGenerator.GetId(userName), userName, message));
     ChangeUpdate();
 }