/// <summary>
 /// 初始化过滤器
 /// </summary>
 private static void InitChecked()
 {
     for (var i = 0; i < ChatTypeHandler.GetIsShowArrayLength(); i++)
     {
         if (i == (int)ChatType.Party || i == (int)ChatType.Speak ||
             i == (int)ChatType.Yell || i == (int)ChatType.Alliance ||
             i == (int)ChatType.Shout || i == (int)ChatType.Motion ||
             i == (int)ChatType.Tell)
         {
             ChatTypeHandler.SetIsShowThisChatType(i, true);
         }
     }
 }
        /// <summary>
        /// 确定
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            // 将储存复选框状态的数组修改为对应复选框的选择状态
            for (var i = 0; i < IsShowArrLength; i++)
            {
                ChatTypeHandler.SetIsShowThisChatType(i, _checkBoxArr[i].Checked);
            }

            var newChatList = new List <Chat>();

            foreach (var chat in _chatList)
            {
                chat.Show = ChatTypeHandler.IsShowThisChatType(chat.ChatInfo.ChatType);
                newChatList.Add(chat);
            }

            Hide();
            _mainForm.RefreshRichTextBox(newChatList);
        }