public void AddItem(ThreadItem value) { bool IsAdd = true; for (int i = 0; i < Count; i++) { if (this[i].ProcessThreadName == value.ProcessThreadName) { this[i].ProcessThread = value.ProcessThread; IsAdd = false; } } if (IsAdd) { this.Add(value); } }
public bool Contains(ThreadItem value) { // If value is not of type Int16, this will return false. return(List.Contains(value)); }
public void Remove(ThreadItem value) { List.Remove(value); }
public void Insert(int index, ThreadItem value) { List.Insert(index, value); }
public int IndexOf(ThreadItem value) { return(List.IndexOf(value)); }
public int Add(ThreadItem value) { return(List.Add(value)); }