예제 #1
0
 public void addThread(string ID, ModelThread thread)
 {
     if (Directories.FirstOrDefault(s => s.ID.Equals(ID)) == null)
     {
         Directories.FirstOrDefault(d => d.ID == ID).addThread(thread);
     }
 }
예제 #2
0
 public void addThread(ModelThread thread)
 {
     if (threads.FirstOrDefault(t => t.getPeekData().ID.Equals(thread.getPeekData().ID)) == null)
     {
         threads.Add(thread);
         totalNum++;
     }
 }
예제 #3
0
 public void addThread(ModelThread thread)
 {
     threads.Add(thread);
 }