Example #1
0
        private void Add_Education(string word, string word_ed)
        {
            int    index;
            string temp;

            index = Education_Index(word);

            if (index >= 0)
            {
                UpDateEducation(index, word_ed.Replace("\n", null));
            }
            else
            {
                Education NewEdication = new Education(word, word_ed.Replace("\n", null));
                EducationList.Add(NewEdication);
            }

            if (msg_reader != null && msg_reader.IsAlive)
            {
                temp = "已學習字詞 : " + word.Replace("\n", "") + " = " + word_ed.Replace("\n", "");
                msg_queue.Enqueue("TextFormCommand!" + current_channel + "@BouyomiMessage:" + "已學習字詞\n");
                Push_A_message_to_Room(temp + "\n");
                msg_reader.Interrupt();
            }
        }
Example #2
0
 internal void AddToEducationList(Education edu)
 {
     EducationList = EducationList.Add(edu);
 }