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); }
public void Add(BufferInstance bufferToAdd) { this.List.Add(bufferToAdd); }
public void Remove(BufferInstance bufferToRemove) { bufferToRemove.Dispose(); this.List.Remove(bufferToRemove); }