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