示例#1
0
        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);
            }
        }
示例#2
0
 public bool Contains(ThreadItem value)
 {
     // If value is not of type Int16, this will return false.
     return(List.Contains(value));
 }
示例#3
0
 public void Remove(ThreadItem value)
 {
     List.Remove(value);
 }
示例#4
0
 public void Insert(int index, ThreadItem value)
 {
     List.Insert(index, value);
 }
示例#5
0
 public int IndexOf(ThreadItem value)
 {
     return(List.IndexOf(value));
 }
示例#6
0
 public int Add(ThreadItem value)
 {
     return(List.Add(value));
 }