示例#1
0
        public BufferInstance Find(string bufferName)
        {
            BufferInstance toReturn = null;

            foreach (BufferInstance buffer in this.List)
            {
                if (buffer.Instance.Name.Equals(bufferName))
                {
                    toReturn = buffer;
                    break;
                }
            }
            return(toReturn);
        }
示例#2
0
 public void Add(BufferInstance bufferToAdd)
 {
     this.List.Add(bufferToAdd);
 }
示例#3
0
 public void Remove(BufferInstance bufferToRemove)
 {
     bufferToRemove.Dispose();
     this.List.Remove(bufferToRemove);
 }