internal void Delete()
 {
     EducationList.ForEach(x => x.Delete());
     DipEducationList.ForEach(x => x.Delete());
     ProfessionalTrainingList.ForEach(x => x.Delete());
     //this.SaveEmpEducationInfo();
 }
예제 #2
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();
            }
        }
예제 #3
0
        private void Delete_Education(string word)
        {
            string temp;

            EducationList.RemoveAll(x => x.GetWord() == word);

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