public void AddSpamMessage(SpamMessage msg)
        {
            List <SpamMessage> spamMessageList = GetSpamMessageList();

            spamMessageList.Add(msg);
            Config.spamMessageList = spamMessageList;
            WriteSpamMessageToDatabase(spamMessageList);
        }
        public void ChangeSpamMessage(SpamMessage msg)
        {
            List <SpamMessage> spamMessageList = GetSpamMessageList();
            int length = spamMessageList.Count;

            for (int i = 0; i < length; i++)
            {
                SpamMessage nowMsg = spamMessageList[i];
                if (nowMsg.FriendlyName == msg.FriendlyName)
                {
                    spamMessageList[i] = msg;
                }
            }

            Config.spamMessageList = spamMessageList;
            WriteSpamMessageToDatabase(spamMessageList);
        }