コード例 #1
0
        private void Delete_Except(string name)
        {
            string temp;

            ExceptList.RemoveAll(x => x.GetName() == name);

            if (msg_reader != null && msg_reader.IsAlive)
            {
                temp = "已取消忽略 : ";
                msg_queue.Enqueue("TextFormCommand!" + current_channel + "@BouyomiMessage:" + temp + "\n");
                Push_A_message_to_Room(temp + "\n");
                msg_reader.Interrupt();
            }
        }
コード例 #2
0
        private void Add_Except(string name)
        {
            //int index;
            string temp;

            Except NewExcept = new Except(name.Replace("\n", null));

            ExceptList.Add(NewExcept);

            if (msg_reader != null && msg_reader.IsAlive)
            {
                temp = "已忽略帳號 : " + name.Replace("\n", "");
                msg_queue.Enqueue("TextFormCommand!" + current_channel + "@BouyomiMessage:" + "已忽略帳號\n");
                Push_A_message_to_Room(temp + "\n");
                msg_reader.Interrupt();
            }
        }